Created
June 7, 2017 13:14
-
-
Save faxm0dem/dcb343765ec912ba6b1b409041109e27 to your computer and use it in GitHub Desktop.
syslog-ng log path flags
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@version: 3.5 | |
source s_in { | |
file("/tmp/in"); | |
}; | |
destination d_driver_position { | |
file("/tmp/driver_position.log"); | |
}; | |
destination d_all_but_driver_position { | |
file("/tmp/all_but_driver_position.log"); | |
}; | |
filter f_driver_position { | |
program("driver_position"); | |
}; | |
log { | |
source(s_in); | |
filter(f_driver_position); | |
destination(d_driver_position); | |
flags(final); | |
}; | |
log { | |
source(s_in); | |
destination(d_all_but_driver_position); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1. run syslog-ng as non-privileged user:
2. send some entries to
in
3. observe result in
/tmp/*driver_position.log
files