file() Source Driver
The file() source driver is used to collect log messages from plain-text files, for example, from the logfiles of an Apache webserver.
Status
Architecture
Status
x86
Works
ARM
Works
How to Test
File() drivers are at the very core of syslog-ng. Chances are you are already using them for displaying output to your console. To test the file source driver, we will use it to display the contents of a file that we create.
Note: For this test, please create a new file and add a few lines of text in it. In this instance, we will assume the file is called "test.txt"
We can use the file() source driver as a source for log messages instead of internal() or system(). To do so, we just need to use:
Configuration File Used
Proof
Last updated