We introduce graylog gradually to a project. At the first level, the graylog server is a remote unreliable server and we’d like to push data to the graylog server from local files. That way all messages reach the graylog server (sooner or later). We plan to push the messages via nxlog.
I can reconfigure the java application via
log4j.properties but the gelf appender directly logs to a tcp/udp socket.
Is there a way to reconfigure the java app to produce logs to gelf format and make nxlog to push to graylog server?
Or is there an other solution, which has
- local file logging
- uploads logs to graylog server whenever there is a connection to the graylog server?