This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
syslogngek [2015/10/02 15:56] ian |
syslogngek [2020/02/13 22:55] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Syslog-ng / Elasticsearch / Kibana ====== | ====== Syslog-ng / Elasticsearch / Kibana ====== | ||
+ | |||
+ | Elasticsearch is used index and make all logs searchable. | ||
+ | |||
+ | Kibana provides a web interface to the search and configure visualization. | ||
Syslog-ng can send logs directly to elasticsearch, | Syslog-ng can send logs directly to elasticsearch, | ||
Line 21: | Line 25: | ||
</ | </ | ||
- | < | + | Puppet Manifest: https://bitbucket.org/snippets/iansamuel/LLEag |
- | :~# cd /usr/src | + | |
- | + | ||
- | :/usr/src# wget http:// | + | |
- | + | ||
- | :/usr/src# dpkg -i syslog-ng-mod-elasticsearch_0.3.3-1build1_all.deb | + | |
- | </ | + | |
- | + | ||
- | ===== ElasticSearch ===== | + | |
- | + | ||
- | https:// | + | |
< | < | ||
- | :~# wget -qO - https:// | + | puppet apply /etc/puppet/manifests/syslog-ng-mod-elasticsearch.pp |
- | + | ||
- | :~# echo "deb http:// | + | |
- | + | ||
- | :~# aptitude update && aptitude install elasticsearch default-jre-headless | + | |
- | + | ||
- | :~# update-rc.d elasticsearch defaults 95 10 | + | |
- | + | ||
- | :~# service elasticsearch start | + | |
- | * Starting Elasticsearch Server | + | |
</ | </ | ||
- | ===== Kibana ===== | + | ===== ElasticSearch / Kibana ===== |
+ | https:// | ||
https:// | https:// | ||
+ | |||
+ | Puppet Manifest: https:// | ||
< | < | ||
- | :~# cd /usr/src | + | puppet apply /etc/puppet/manifests/elasticsearch-kibana.pp |
- | + | ||
- | :/usr/src# wget -c https:// | + | |
- | + | ||
- | :/usr/src# cd / | + | |
- | + | ||
- | :/ | + | |
- | + | ||
- | :/ | + | |
- | + | ||
- | :/ | + | |
- | + | ||
- | :/ | + | |
</ | </ | ||
- | |||
====== Configuration ====== | ====== Configuration ====== | ||
Line 73: | Line 48: | ||
< | < | ||
@include " | @include " | ||
+ | |||
+ | source s_net { udp(); }; # All interfaces | ||
destination d_elastic { | destination d_elastic { | ||
| | ||
+ | | ||
| | ||
); | ); | ||
Line 81: | Line 59: | ||
log { | log { | ||
- | source(s_src); | + | source(s_net); |
destination(d_elastic); | destination(d_elastic); | ||
flags(flow-control); | flags(flow-control); |