leeman24
leeman24

Reputation: 2899

Explicitlly Set logstash-forwarder log file location

I am wondering how you can explicitly set the logstash-forwarder log file location. For some reason I don't see any options for this. For my Linux VM's, it is not a (big) problem as they get stored in /var/log/logstash-forwarder/ however in Windows, I cannot seem to find them anywhere.

I looked around with the options when running logstash-forwarder -help, but it doesn't seem to provide any options. Google doesn't help either.

I have tried -syslog=true / -log-t-syslog=true which doesn't seem to do anything.

Upvotes: 0

Views: 101

Answers (1)

Witek
Witek

Reputation: 135

I remember setting up logstash-forwarder as windows service with nssm-2.24 some time ago. The nssm-2.24 has an I/O tab where you can specify the stdout and stderr redirection.

As for the logstash-forwarder itself it uses Go Package log (see syslog_windows.go source file) and I don't know where those logs are send by default.

This answer suggests upgrading to Filebeat as logstash-forwarder is deprecated. However the syslog_other.go file from this project makes me wonder if this is good idea in your case.

Upvotes: 1

Related Questions