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/21 16:00]
ian [Syslog-ng]
syslogngek [2020/02/13 22:55] (current)
Line 25: Line 25:
 </note> </note>
  
-Code: +Puppet Manifest: https://bitbucket.org/snippets/iansamuel/LLEag
-https://bitbucket.org/snippets/iansamuel/LLEag+
  
 <code> <code>
Line 32: Line 31:
 </code> </code>
  
-===== ElasticSearch =====+===== ElasticSearch / Kibana =====
  
-https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-repositories.html+https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-repositories.html \\ 
 +https://www.elastic.co/downloads/kibana
  
-<code> +Puppet Manifest: https://bitbucket.org/snippets/iansamuel/yqj5k
-:~# wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - +
- +
-:~# 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> +
- +
-===== Kibana ===== +
- +
-https://www.elastic.co/downloads/kibana+
  
 <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 76: 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 84: Line 59:
  
 log { log {
-    source(s_src);+    source(s_net);
     destination(d_elastic);     destination(d_elastic);
     flags(flow-control);     flags(flow-control);
syslogngek.1445457613.txt.gz · Last modified: 2020/02/13 22:55 (external edit)

free spam filter