Graylog - System and applicatif log same input

(Baudringhien) #1

Hi everybody,
Thanks to them whom will try to help me !
I’m starting a new graylog project and I want to receive two different kind of log on this server : applicatif and system logs.
I have read on this forum that I can use and configure only one input to do it (I don’t have so much server) but my problem is that I need to use logstash to make my applicatif logs more understandable by graylog.
So the question is, with one input, how can i configure logstash to work only on my specif applicatif log ? Because my basic system log are already understandable by graylog.
Sorry for my english and thank you for your help !

(Jochen) #2

You can easily create multiple inputs, e. g. a dedicated input for each category of log (system logs, application logs, network appliances logs), so you can use custom extractors for each category of log message.

(Baudringhien) #3

Oh thank you for your quick answer !
So the easiest solution is to create two different input for each kind of log and using another port for the second one ? 5140 and 5141 for example ?
Thank you again !

(Jochen) #4

Yes, exactly. There’s no limit on the number of inputs you can create (as long as they don’t listen on the same network socket).

Additionally, you can use streams to further categorize your data.

(Baudringhien) #5

Perfect, thank you, i will try to do it soon
Last question, can I send system logs directly to my graylog input on the port 5140 or should I send them to the port 514 of my server and then, the rsyslog service will send it to “itself” on the port 5140 ?
I tried to send it directly to the 5140 input but it didn’t work

(Jochen) #6

If you mean syslog and you’re running a syslog input on port 5140/udp or 5140/tcp, then this should work.

See for details.

(system) #7

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