User Tools

Site Tools


syslogngek

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
syslogngek [2015/10/05 14:34]
ian
syslogngek [2020/02/13 22:55] (current)
Line 25: Line 25:
 </note> </note>
  
-<code> +Puppet Manifesthttps://bitbucket.org/snippets/iansamuel/LLEag
-:~# cd /usr/src +
- +
-:/usr/src# wget http://mirrors.kernel.org/ubuntu/pool/universe/s/syslog-ng-incubator/syslog-ng-mod-elasticsearch_0.3.3-1build1_all.deb +
- +
-:/usr/src# dpkg -i syslog-ng-mod-elasticsearch_0.3.3-1build1_all.deb +
-</code> +
- +
-===== ElasticSearch ===== +
- +
-https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-repositories.html+
  
 <code> <code>
-:~# wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - +puppet apply /etc/puppet/manifests/syslog-ng-mod-elasticsearch.pp
- +
-:~# echo "deb http://packages.elastic.co/elasticsearch/1.7/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-1.7.list +
- +
-:~# aptitude update && aptitude install elasticsearch default-jre-headless +
- +
-:~# update-rc.d elasticsearch defaults 95 10 +
- +
-:~# service elasticsearch start +
- * Starting Elasticsearch Server+
 </code> </code>
  
-===== Kibana =====+===== ElasticSearch / Kibana =====
  
 +https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-repositories.html \\
 https://www.elastic.co/downloads/kibana https://www.elastic.co/downloads/kibana
 +
 +Puppet Manifest: https://bitbucket.org/snippets/iansamuel/yqj5k
  
 <code> <code>
-:~# cd /usr/src +puppet apply /etc/puppet/manifests/elasticsearch-kibana.pp
- +
-:/usr/src# wget -c https://download.elastic.co/kibana/kibana/kibana-4.1.2-linux-x64.tar.gz +
- +
-:/usr/src# cd /usr/local/ +
- +
-:/usr/local# tar xvzf /usr/src/kibana-*gz +
- +
-:/usr/local# ln -s kibana-4.1.2-linux-x64 kibana +
- +
-:/usr/local# echo "/usr/local/kibana/bin/kibana | logger -t kibana &" >> /etc/rc.local +
- +
-:/usr/local# /usr/local/kibana/bin/kibana | logger -t kibana &+
 </code> </code>
- 
 ====== Configuration ====== ====== Configuration ======
  
Line 77: Line 48:
 <code> <code>
 @include "scl/elasticsearch/plugin.conf" @include "scl/elasticsearch/plugin.conf"
 +
 +source s_net { udp(); };  # All interfaces
  
 destination d_elastic { destination d_elastic {
        elasticsearch(        elasticsearch(
 +         host("localhost")
          index("syslog-ng")          index("syslog-ng")
        );        );
Line 85: Line 59:
  
 log { log {
-    source(s_src);+    source(s_net);
     destination(d_elastic);     destination(d_elastic);
     flags(flow-control);     flags(flow-control);
syslogngek.1444070044.txt.gz · Last modified: 2020/02/13 22:55 (external edit)

free spam filter