Modules xm_gelf Modules in_file File C:\Program Files (x86)\App\log\app.log" # If there is a date and time in the logfile, extract it. If the date and time are not available, take the system time. Exec if $raw_event =~ /(\d\d\d\d\d\-\d\d\d-\d\d \d\d:\d\d:\d\d\d)/ $EventTime = parsedate($1); # Normally the hostname is set by default, for security's sake it can be entered in this way. Exec $Hostname = 'myhost'; # Now the type of message (severity level) is set. The example uses the default syslog values. # ALERT: 1, CRITICAL: 2, ERROR: 3, WARNING: 4, NOTICE: 5, INFO: 6, DEBUG: 7 Exec if $raw_event =~ /ERROR/ $SyslogSeverityValue = 3; else $SyslogSeverityValue = 6; # The name of the file is also sent with the file Exec $FileName = file_name(); # The SourceName variable is set by default to 'NXLOG'. To send the application names, too, use $SourceName = 'AppName' instead. Exec $SourceName = ' AppName'; Modules om_udp Host GraylogServerName Port 12201 OutputType GELF Path in => out