Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- define ROOT /usr/bin
- <Extension gelf>
- Module xm_gelf
- </Extension>
- User nxlog
- Group nxlog
- Moduledir /usr/libexec/nxlog/modules
- CacheDir /var/spool/collector-sidecar/nxlog
- PidFile /var/run/graylog/collector-sidecar/nxlog.pid
- define LOGFILE /var/log/graylog/collector-sidecar/nxlog.log
- LogFile %LOGFILE%
- LogLevel INFO
- <Extension logrotate>
- Module xm_fileop
- <Schedule>
- When @daily
- Exec file_cycle('%LOGFILE%', 7);
- </Schedule>
- </Extension>
- <Input 57cfc3b6db0cc85cc8c4d96e>
- Module im_file
- File '/root/log_sample/*.csv'
- PollInterval 1
- SavePos True
- ReadFromLast True
- Recursive True
- RenameCheck False
- Exec $FileName = file_name(); # Send file name with each message
- </Input>
- <Output 57cfc36edb0cc85cc8c4d921>
- Module om_udp
- Host 192.168.9.202
- Port 5556
- OutputType GELF
- Exec $short_message = $raw_event; # Avoids truncation of the short_message field.
- Exec $gl2_source_collector = 'cbe69c73-b052-496c-a50f-c7b4f795328c';
- Exec $Hostname = hostname_fqdn();
- </Output>
- <Route route-0>
- Path 57cfc3b6db0cc85cc8c4d96e => 57cfc36edb0cc85cc8c4d921
- </Route>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement