Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 557530 - app-admin/logstash-forwarder-0.4.0 - do not randomize chdir
Summary: app-admin/logstash-forwarder-0.4.0 - do not randomize chdir
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amadeusz Żołnowski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-14 08:30 UTC by Tomáš Mózes
Modified: 2015-08-17 04:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Mózes 2015-08-14 08:30:11 UTC
Logstash-forwarder keeps its state of which logs were parsed in ${chdir}/.logstash-forwarder. Currently the directory in which this file is randomized which means that be each run the previously parsed logs are parsed again which is not good. 

Wouldn't it be better to keepdir /var/lib/logstash-forwarder and chdir there so that the daemon restarts won't duplicate the logs?
Comment 1 Amadeusz Żołnowski (RETIRED) gentoo-dev 2015-08-15 13:04:12 UTC
commit 8ff07efe8002a7ee0545cac58e6ec9a78c7481d6
commit 7aed80ade65c805b946a3e064cc1619cbc5c3a30
Comment 2 Tomáš Mózes 2015-08-17 04:11:13 UTC
Thanks.

By the way, what was the idea behind state dir randomization?