Where are the logstash log files in Windows?
It depends on how Logstash is invoked. The -l
/--log
startup option selects the name of the log file.
It's just being run with: C:\logstash-2.3.2\bin>logstash -f c:\logstash-2.3.2\central.conf
central.conf
looks like:
input {
redis {
host => "XX.XX.XX.XX"
type => "redis-input"
data_type => "list"
key => "logstash"
}
beats {
type => beats
port => 5044
}
}
output {
stdout { }
elasticsearch { }
}
It's straight out of The Logstash Book.
Then you'll get the logs to stdout (or possibly stderr, I don't recall).
OK, I do get output to the screen. Do you know what the magic is to output them to a file?.. and how to give that file a max size?
Do you know what the magic is to output them to a file?
Apart from redirecting the process output see my first response to you.
.. and how to give that file a max size?
Logstash doesn't do log rotation.
OK, cheers. I'll just have to delete them every now and then, that's no biggie.