kifj/wildfly-logstash

Log file delivery after network failure

Closed this issue · 1 comments

Hello,

I've noticed that locally saved json data is not delivered to logstash collector after long network outage.
Is it my configuration problem or stale logs should be uploaded manually or with external tools?
Thanks in advance!

/subsystem=logging/custom-formatter=LOGSTASH-PATTERN:add(class=net.logstash.logging.formatter.LogstashUtilFormatter,module=net.logstash.logging)
/subsystem=logging/periodic-rotating-file-handler=LOGSTASH:add(autoflush=true,suffix=".yyyy-MM-dd",append=true,file={path=logstash.log, relative-to=jboss.server.log.dir})
/subsystem=logging/periodic-rotating-file-handler=LOGSTASH:write-attribute(name=named-formatter,value=LOGSTASH-PATTERN)
/subsystem=logging/custom-handler=LOGSTASH-SOCKET:add(level=DEBUG,class=net.logstash.logging.handler.SocketHandler,module=net.logstash.logging,named-formatter=LOGSTASH-PATTERN,properties={protocol=TCP,hostname=collector.localnet,port=9200,subHandler=LOGSTASH})
/subsystem=logging/async-handler=LOGSTASH-ASYNC:add(queue-length=512, subhandlers=[LOGSTASH-SOCKET])
/subsystem=logging/root-logger=ROOT:add-handler(name=LOGSTASH-ASYNC)
kifj commented

Sorry, there's no automatic upload when the logs can not be pushed. You'll need to do this manually.