Deleted logstash-plain.log - it's not coming back!

Hi All,
Help, in a process of trying to debug i deleted logstash-plain.log from /var/log/logstash.
but its not come back!
Any ideas how i get it back please?

You will need to stop and start logstash again so it can recreate the file.

tried that......
I'll try a reboot. Thanks!

O man!
Ok a systemctl restart logstash.service didn't work!
but a full reboot did! - back to debugging again! Thanks!

Does it give any clue if you do systemctl status logstash.service?

Try to manually create the file and set the correct chown and chmod? You shouldn't have to do this but might help get things going.

touch /var/log/logstash/logstash-plain.log
chown logstash:logstash /var/log/logstash/logstash-plain.log
chmod 755 /var/log/logstash/logstash-plain.log (I think it's 755)
systemctl restart logstash.service

The status just said it was running.
I did everything other than the chmod command.
And it didn't work.
But a full reboot burst it back info life!

1 Like

Ahh ok. I misread your last post as the reboot didn't work. I see it now.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.