Log Analysis With The ELK Stack
Log Analysis With The ELK Stack
Stack (Elasticsearch,
Logstash and Kibana)
A Little Context
!
!
!
Alternatives to Splunk
!
Graylog2
Nxlog
Octopussy
Logscape,
ELSA
LOGanalyzer
Logalyzer
Logwatcher
logHound
logReport
Logsurfer
PHP-Syslog-NG
Alternative to Splunk
!
!
!
!
In the early stages of the ELK stack, the pieces didn't play
well together.
Early versions of Logstash needed specific versions of
Elasticsearch and those weren't the latest ones.
This caused some problems because Kibana wanted the
latest version of Elasticsearch.
So I tried a couple of alternatives to ELK.
EFK
!
!
!
Bad Points:
!
ERK
!
!
!
Bad Points:
!
!
10
Much like FluentD, you install it, point it at Elasticsearch and point
your syslogs at Rsyslogd and you're good to go.
The plugin requires the very latest version of Rsyslogd, so you
have to build the latest version of Rsyslogd and the plugin.
Then, you have to maintain the version of Rsyslogd and the plugin
since it's two major revisions above what's available in RHEL.
11
12
Logstash
!
!
!
13
Logstash Hosts
!
14
15
input
filter
output
16
file: reads from a file on the filesystem, much like the UNIX
command "tail -f"
syslog: listens on the well-known port 514 for syslog messages
and parses according to RFC3164 format
lumberjack: processes events sent in the lumberjack protocol.
Now called logstash-forwarder.
!
!
!
17
!
!
18
19
20
Elasticsearch Configuration
!
!
!
21
22
Troubleshooting: Is It Running?
!
!
!
23
24
25
26
!
!
27
28
References
!
!
!
!
!
!
!
29
http://www.elastic.co/
http://logstash.net/docs/latest
https://www.elastic.co/products/kibana
https://github.com/elastic/curator/wiki
http://www.fluentd.org/
http://www.rsyslog.com/
http://grokdebug.herokuapp.com/
Questions?
Gary Smith
Information System Security Officer, Molecular Science
Computing, Pacific Northwest National Laboratory
Richland, WA
[email protected]
30