Hello,

I recently upgraded to rsyslog 8.18 and was happy to see that on disk
queues no longer cause rsyslog to get in a bad state. However, now I see
very long delays (several hours) of logs being pushed to Elasticsearch. It
seems that somehow the logs are being buffered on the client for several
hours because eventually they do show up in Elasticsearch. I don't see any
errors in /var/log/rsyslog/ES-error.log (see config below) or
/var/log/messages.

I enabled impstats but didn't see any errors related to omelasticsearch.
What else can I do to troubleshoot this?

Here is my omelasticsearch config:

action(
         type = "omelasticsearch"
         template = "es-payload"
         dynSearchIndex = "on"
         searchIndex = "logstash-index"
         searchType = "syslog"
         server = "127.0.0.1"
         serverport = "9200"
         uid = "xxx"
         pwd = "yyy"
         errorFile = "/var/log/rsyslog/ES-error.log"
         bulkmode = "on"
         action.resumeretrycount="-1"  # retry if ES is unreachable (-1 for
infinite retries)
         action.resumeInterval="60"
         queue.dequeuebatchsize="1000"   # ES bulk size
         queue.type="linkedlist"
         queue.size="100000"
         queue.workerthreads="5"
         queue.timeoutworkerthreadshutdown="2000"
         queue.spoolDirectory="/var/spool/rsyslog"
         queue.filename="omelasticsearch-queue"
         queue.maxfilesize="100m"
         queue.maxdiskspace="1g"
         queue.highwatermark="80000" # when to start spilling to disk
         queue.lowwatermark="20000"  # when to stop spilling to disk
         queue.saveonshutdown="on"
    )

Thanks,

Alec
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to