Can we export logs to SIEM System

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Can we export logs to SIEM System

Post by hsmith »

I would love for NLS to break in to that market.
Former Nagios Employee.
me.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Can we export logs to SIEM System

Post by eloyd »

Dude, we're already doing it. Too bad about #nagioscon16, because I was going to put that into one of my talks.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Can we export logs to SIEM System

Post by tmcdonald »

Definitely upsetting, but I'd like to keep this on-topic and give the OP time to respond.
Former Nagios employee
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: Can we export logs to SIEM System

Post by sgiworks »

Do we need to mention additional out location on each machines? or can we have the Nagios Log Server to forward/ ship already collected logs to Security Analytics Solution at remote location.

- Swapnil
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Can we export logs to SIEM System

Post by rkennedy »

NLS should be able to forward them. Under Global Configuration, you should see a part for 'Show Outputs'. Click that, then configure an output accordingly. To look at what logstash supports, see this page - https://www.elastic.co/guide/en/logstas ... ugins.html

An example, for TCP output would be -

Code: Select all

tcp {
    host => '192.168.5.5'
    port => '5555'
}
Former Nagios Employee
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: Can we export logs to SIEM System

Post by sgiworks »

Thank you, let me try and I'll get back to you if there are any further questions.
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: Can we export logs to SIEM System

Post by sgiworks »

Created a CSV output using following script, however when click on save the additional output disappears. Again I clicked on Show Output and I see it there is inactive mode, where as it doesn't allow me to make it active.

csv {
fields => ...
path => ...
}
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Can we export logs to SIEM System

Post by rkennedy »

You'll want to install the logstash-output-csv. It isn't included with NLS by default.

Code: Select all

/usr/local/nagioslogserver/logstash/bin/plugin install logstash-output-csv
Then, set up your CSV output similar to this -

Code: Select all

csv {
fields => ['host', 'message']
path => '/tmp/test.csv'
}
Make sure the file is writable by the nagios user and you should see the file begin to populate.

Code: Select all

[root@localhost tmp]# ls -al test.csv
-rwxrwxrwx 1 nagios nagios 26894 Aug 26 11:33 test.csv
[root@localhost tmp]# tail test.csv
127.0.0.1,"  apache : TTY=unknown ; PWD=/var/www/html/nagioslogserver/www ; USER=root ; COMMAND=/etc/init.d/logstash status
"
127.0.0.1,"  apache : TTY=unknown ; PWD=/var/www/html/nagioslogserver/www ; USER=root ; COMMAND=/etc/init.d/elasticsearch status
"
127.0.0.1,"  nagios : TTY=unknown ; PWD=/var/www/html/nagioslogserver/www ; USER=root ; COMMAND=/etc/init.d/elasticsearch status
"
127.0.0.1,"  nagios : TTY=unknown ; PWD=/var/www/html/nagioslogserver/www ; USER=root ; COMMAND=/etc/init.d/logstash status
"
127.0.0.1,"  nagios : TTY=unknown ; PWD=/var/www/html/nagioslogserver/www ; USER=root ; COMMAND=/etc/init.d/logstash status
"
[root@localhost tmp]#
Former Nagios Employee
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: Can we export logs to SIEM System

Post by sgiworks »

[root@ip-10-2-4-222 ec2-user]# /usr/local/nagioslogserver/logstash/bin/plugin install logstash-output-csv
Can only install contrib at this time... Exiting.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Can we export logs to SIEM System

Post by mcapra »

What version of NLS is this instance running? We may need to find/build an older spec file for this plugin.
Former Nagios employee
https://www.mcapra.com/
Locked