23. 23
03
Configuring rsyslog
mail.*
/var/log/
mail
if
$facility
==
"mail"
then
{
action(type="omfile"
file="/var/log/mail")
}
works
on
~30-‐year-‐
old
syslogd
24. 24
03
Configuring rsyslog
mail.*
/var/log/
mail
if
$facility
==
"mail"
then
{
action(type="omfile"
file="/var/log/mail")
}
works
on
~30-‐year-‐
old
syslogd
room
for
more
options
in
modules
+
main
flow
(e.g.
local
vars)
25. 25
03
Configuring rsyslog
mail.*
/var/log/
mail
if
$facility
==
"mail"
then
{
action(type="omfile"
file="/var/log/mail")
}
if you see this kind while
googling, it’s likely outdated
(5-10 year-old rsyslog versions)
works
on
~30-‐year-‐
old
syslogd
room
for
more
options
in
modules
+
main
flow
(e.g.
local
vars)
26. 26
03
Configuring rsyslog
mail.*
/var/log/
mail
if
$facility
==
"mail"
then
{
action(type="omfile"
file="/var/log/mail")
}
written in the last 4 years
works
on
~30-‐year-‐
old
syslogd
if you see this kind while
googling, it’s likely outdated
(5-10 year-old rsyslog versions)
room
for
more
options
in
modules
+
main
flow
(e.g.
local
vars)
42. 42
01
Normalizing “Should Scale”*
sys
tem log
d -ng
performance depends mostly on log length and not on the number of rules:
http://blog.gerhards.net/2013/01/performance-of-liblognormrsyslog-parse.html
57. 57
01
Time-Based Collections
15
Oct
14
Oct
13
Oct
12
Oct
indexing, merges,
most searches
doesn’t change => cache friendly
can be optimized
delete without
triggering merges
58. 58
01
Time-Based Collections
15
Oct
14
Oct
13
Oct
12
Oct
indexing, merges,
most searches
doesn’t change => cache friendly
=> can be optimized
delete without
triggering merges
20-30x capacity; less indexing degradation*
* http://www.slideshare.net/sematext/side-by-side-with-elasticsearch-solr-part-2
66. 66
01
Tiered Cluster
cold1
cold2
cold3
cold4
(L)
13
Oct
(R)
13
Oct
(L)
15
Oct
(R)
15
Oct
(L)
14
Oct
(R)
14
Oct
quick recent searches
and indexing rare lengthy requests
hot1
hot2
buffer for indexing spikes
67. 67
01
Tiered Cluster
cold1
cold2
cold3
cold4
(L)
13
Oct
(R)
13
Oct
(L)
15
Oct
(R)
15
Oct
(L)
14
Oct
(R)
14
Oct
quick recent searches
and indexing rare lengthy requests
hot1
hot2
buffer for indexing spikes
less shards per collection
and the cluster is still balanced
68. 68
01
Tiered Cluster
cold1
cold2
cold3
cold4
(L)
13
Oct
(R)
13
Oct
(L)
15
Oct
(R)
15
Oct
(L)
14
Oct
(R)
14
Oct
quick recent searches
and indexing rare lengthy requests
hot1
hot2
buffer for indexing spikes
less shards per collection
and the cluster is still balanced
CPU++
RAM++
IO++