Sending Nginx log to graylog

HI everyone. I have 2 server. 1st server is Ngnix logs, 2nd is graylog server. How i can send directly Ngnix logs to graylog?

he @Uporaba

you can use a content pack like this: https://marketplace.graylog.org/addons/572ff823-62cc-468e-af17-300bcfd9932d and configure the logging like described in the readme.

The other option would be to use a log collector like filebeats to read the log file and deliver it to Graylog.

1 Like

@jan Okay i set .json file in contentpacks and edit nginx.conf on 1st server but i haven’t metrics in search. image

But data are send on 2nd server image

you need to check if your nginx is sending the data proper, if that comes in at graylog and if that is processed by graylog.

Okay i solved this problem, now i don’t understand how i can change log format who output in graylog i changed nginx.conf and changes don’t save.

would you please rephrase your question - I do not understand what your issue is.

Nothing. I solved all problems,thanks.

Sharing your solution might help others (or yourself) in the future.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.