Can we export logs to SIEM System
Re: Can we export logs to SIEM System
I would love for NLS to break in to that market.
Former Nagios Employee.
me.
me.
Re: Can we export logs to SIEM System
Dude, we're already doing it. Too bad about #nagioscon16, because I was going to put that into one of my talks.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: Can we export logs to SIEM System
Definitely upsetting, but I'd like to keep this on-topic and give the OP time to respond.
Former Nagios employee
Re: Can we export logs to SIEM System
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
- Swapnil
Re: Can we export logs to SIEM System
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 -
An example, for TCP output would be -
Code: Select all
tcp {
host => '192.168.5.5'
port => '5555'
}
Former Nagios Employee
Re: Can we export logs to SIEM System
Thank you, let me try and I'll get back to you if there are any further questions.
Re: Can we export logs to SIEM System
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 => ...
}
csv {
fields => ...
path => ...
}
Re: Can we export logs to SIEM System
You'll want to install the logstash-output-csv. It isn't included with NLS by default.
Then, set up your CSV output similar to this -
Make sure the file is writable by the nagios user and you should see the file begin to populate.
Code: Select all
/usr/local/nagioslogserver/logstash/bin/plugin install logstash-output-csv
Code: Select all
csv {
fields => ['host', 'message']
path => '/tmp/test.csv'
}
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
Re: Can we export logs to SIEM System
[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.
Can only install contrib at this time... Exiting.
Re: Can we export logs to SIEM System
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/
https://www.mcapra.com/