$ModLoad imfile
$InputFilePollInterval 10
$PrivDropToGroup adm
$WorkDirectory /var/spool/rsyslog
#Input for /var/log/upstart/nibbl.log
$InputFileName /var/log/upstart/nibbl.log
$InputFileTag nibbl1
$InputFileStateFile stat-nibbl1 #this must be unique for each file being polled
$InputFileSeverity info
$InputFilePersistStateInterval 20000
$InputRunFileMonitor # Add a tag for file events
$template LogglyFormatFile,"<%pri%>%protocol-version% %timestamp:::date-rfc3339% %hostname% %app-name% %procid% %msgid% [818458cc-dfd8-4146-acd3-dd77d558dd01@41058 tag=\"file\"] %msg%\n"
# Send to Loggly then discard if $programname == 'nibbl1' then @@logs-01.loggly.com:514;LogglyFormatFile
if $programname == 'nibbl1' then ~

$ModLoad imfile
$InputFilePollInterval 10
$PrivDropToGroup adm
$WorkDirectory /var/spool/rsyslog
#Input for /var/log/upstart/nibbl.log
$InputFileName /var/log/upstart/nibbl.log
$InputFileTag nibbl1
$InputFileStateFile stat-nibbl1 #this must be unique for each file being polled
$InputFileSeverity info
$InputFilePersistStateInterval 20000
$InputRunFileMonitor # Add a tag for file events
$template LogglyFormatFile,"<%pri%>%protocol-version% %timestamp:::date-rfc3339% %hostname% %app-name% %procid% %msgid% [818458cc-dfd8-4146-acd3-dd77d558dd01@41058 tag=\"file\"] %msg%\n"
# Send to Loggly then discard if $programname == 'nibbl1' then @@logs-01.loggly.com:514;LogglyFormatFile
if $programname == 'nibbl1' then ~