Please help!
Thank you very much!
same problem occurred when I run Logstash 2.2.1 as a service (Centos 7)
my configuration file:
input {
file {
path => "/var/log/secure"
type => "system"
sincedb_path => "/tmp/sincedb"
start_position => "beginning"
}
}
error messages:
Feb 14 09:30:00 elk logstash: {:timestamp=>"2016-02-14T09:30:00.066000+0800", :message=>"A plugin had an unrecoverable error. Will restart this plugin.\n Plugin: <LogStash::Inputs::File path=>["/var/log/secure"], type=>"system", sincedb_path=>"/tmp/sincedb", start_position=>"beginning", codec=><LogStash::Codecs::Plain charset=>"UTF-8">, stat_interval=>1, discover_interval=>15, sincedb_write_interval=>15, delimiter=>"\n", ignore_older=>86400, close_older=>3600>\n Error: No HOME or SINCEDB_PATH set in environment. I need one of these set so I can keep track of the files I am following.", :level=>:error}
Feb 14 09:30:01 elk logstash: {:timestamp=>"2016-02-14T09:30:01.069000+0800", :message=>"A plugin had an unrecoverable error. Will restart this plugin.\n Plugin: <LogStash::Inputs::File path=>["/var/log/secure"], type=>"system", sincedb_path=>"/tmp/sincedb", start_position=>"beginning", codec=><LogStash::Codecs::Plain charset=>"UTF-8">, stat_interval=>1, discover_interval=>15, sincedb_write_interval=>15, delimiter=>"\n", ignore_older=>86400, close_older=>3600>\n Error: No HOME or SINCEDB_PATH set in environment. I need one of these set so I can keep track of the files I am following.", :level=>:error}
Feb 14 09:30:02 elk logstash: {:timestamp=>"2016-02-14T09:30:02.071000+0800", :message=>"A plugin had an unrecoverable error. Will restart this plugin.\n Plugin: <LogStash::Inputs::File path=>["/var/log/secure"], type=>"system", sincedb_path=>"/tmp/sincedb", start_position=>"beginning", codec=><LogStash::Codecs::Plain charset=>"UTF-8">, stat_interval=>1, discover_interval=>15, sincedb_write_interval=>15, delimiter=>"\n", ignore_older=>86400, close_older=>3600>\n Error: No HOME or SINCEDB_PATH set in environment. I need one of these set so I can keep track of the files I am following.", :level=>:error}