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

Reindex file #449

Closed
silviupanaite opened this issue Apr 29, 2015 · 2 comments
Closed

Reindex file #449

silviupanaite opened this issue Apr 29, 2015 · 2 comments

Comments

@silviupanaite
Copy link

Logstash dropped some entries due to an error. I fixt it but how can I force logstash-forwarder to reparse that file?

Or is there a solution to my problem?

@hvisage
Copy link

hvisage commented Apr 29, 2015

The method would be to add the "beginning" option to the logstash-forwarder.conf file.
Then remove the relavent .logstash-forwarder file from the home directory or working directory of the logstash-forwarder process.

The other technique I use, is to setup a stdin feeder config file with all the needed settings for that file, but the path to point to "-", then you start something like:
cat file | logstash-forwarder --config /etc/logstash-forwarder-feeder.conf -quiet=false
And once it pushed everything up (the last message not a round 1024 or something) then you can kill the logstash-forwarder.
Also the reason I have opened #448

@silviupanaite
Copy link
Author

Thanks for the response.
I'll try that.

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

2 participants