Sending Nginx log to graylog


(Yaroslav) #1

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


(Jan Doberstein) #2

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.


(Yaroslav) #3

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


(Yaroslav) #4

But data are send on 2nd server image


(Jan Doberstein) #5

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.


(Yaroslav) #6

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.


(Jan Doberstein) #7

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


(Yaroslav) #8

Nothing. I solved all problems,thanks.


(Jan Doberstein) #9

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


(system) #10

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