Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open files issue in logstash #68

Closed
ankitlnct09 opened this issue Mar 6, 2015 · 3 comments
Closed

Open files issue in logstash #68

ankitlnct09 opened this issue Mar 6, 2015 · 3 comments

Comments

@ankitlnct09
Copy link

Hi,

I am using logstash 1.4 file input in which we are facing open file issue in linux server (RHEL).
Please add configuration so that it will only monitor updated files

@suyograo
Copy link
Contributor

Hi, I don't understand the issue. Could you please explain further? Also please open an issue here: https://github.com/logstash-plugins/logstash-input-file

@ankitlnct09
Copy link
Author

Hi Suyog,

I am using logstash on apache server in which logs file are rotated every 10 MB, so for monitoring these file i am using wildcard char (i.e. * ) in logstash configuration file input. so suppose in a day 100 files are rotated logstash keep opens these 100 files and after some days number of open file by logstash is too high which is effecting the server performance.

If there is any alternative to resolve the above problem, Please forward it to me and if possible please add some solution in logstash input file configuration for monitoring only updated file in case of wildcard using in path.

@untergeek
Copy link
Contributor

This sounds more like an input issue than one with the logstash-output-elasticsearch plugin.

That said, why tail log files when you can configure Apache to send JSON formatted logs directly to Logstash? That is, if you can add the alternate configuration. Then you won't have a file handle issue at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants