File
Description
The File
channel will save all the events into a file
.
Syntax
[channel.<you_choose>]
type="file"
Arguments in configuration file
There are 3
arguments in File
channel:
argument | default setting | explanation | required |
---|---|---|---|
maxsize |
1073741824 bytes (1gb) | Set the maximal size of your log file. |
no |
filename |
no | Set the name of the file. |
yes |
timeout |
5 s | Save in the file every timeout . |
no |
s seconds
mcs microseconds
ns nanoseconds
ms milliseconds
m minutes
h hours
Example
[channel.file01]
type="file"
filename="/var/log/honeytrap.log"
maxsize=536870912
timeout="1h" # Every 1 hour
Availability
Linux | MacOS |
---|---|
yes |
yes |