4. Put them all in a folder
$ ls -l
drwxr-xr-x@ 12 matt staff 408B Apr 24 13:07 elasticsearch
drwxr-xr-x@ 16 matt staff 544B Apr 17 12:04 kibana
drwxr-xr-x 4672 matt staff 155K Apr 24 14:19 logs
drwxr-xr-x@ 20 matt staff 680B Apr 24 22:55 logstash
Matt Overstreet ! | opensourceconnections.com "
13. Timestamps
We need to specify a timestamp for Kibana, but we have a
problem!
Our time data is in Microseconds!?
time_microseconds 1488343917672486
Matt Overstreet ! | opensourceconnections.com "
15. No problem, add ruby
filter {
# prepare our time series data
ruby {
code => "event.set('time_micros',
event.get('time_micros').to_i / 1000)"
}
# use it as a timestamp
date {
match => [ "time_micros", "UNIX_MS" ]
}
}
Matt Overstreet ! | opensourceconnections.com "
16. Stash some logs!
cd logstash
bin/logstash -f config/seachdisco.conf
Matt Overstreet ! | opensourceconnections.com "
22. What if Someone Digs Into the Back
Catalog?
Let's build a better Y-axis
filter {
mutate {
add_field => {
'request_id' => "%{c_ip}-%{cs_object}"
}
}
}
Matt Overstreet ! | opensourceconnections.com "