Skip to content

Logfiles when running as a Windows service #6067

Answered by JeanMertz
xgcssch asked this question in Q&A
Discussion options

You must be logged in to vote

It does appear that any logs sent to stdout are effectively ending up in /dev/null when running a program as a Windows service (ref: https://stackoverflow.com/questions/20523480/windows-service-output).

Having said that, whatever is sent to stdout is also accessible as a regular internal_events source in Vector, so you can hook into that source, and then use the file sink to store the logs in a file, or use any of the other sinks to route the internal Vector events to your desired destination.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by JeanMertz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants