Link Search Menu Expand Document

date: 2016-03-31

Date 31-03-2016

Ubuntu 14.04
Kibana 4.5.0
ElasticSearch 2.3.0
FluentD aka td-agent 2.3.1

Do basic install of ubuntu with openssh.

# nano /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address   # change to your ip etc

# apt-get update
# apt-get upgrade

}»pre reqs

# nano /etc/security/limits.conf    #  add to end

    root soft nofile 65536
    root hard nofile 65536
    * soft nofile 65536
    * hard nofile 65536

# edit /etc/sysctl.conf     # add to end

    net.ipv4.tcp_tw_recycle = 1
    net.ipv4.tcp_tw_reuse = 1
    net.ipv4.ip_local_port_range = 10240    65535
    net.ipv6.conf.all.disable_ipv6 = 1
    net.ipv6.conf.default.disable_ipv6 = 1
    net.ipv6.conf.lo.disable_ipv6 = 1

Check network works fine

}»install fluentd aka td-agent

}»install elasticsearch

# sudo apt-get install openjdk-7-jre-headless –yes

# wget -qO - sudo apt-key add -
echo “deb stable main” sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list

# sudo apt-get update && sudo apt-get install elasticsearch

# sudo update-rc.d elasticsearch defaults 95 10

# nano /etc/elasticsearch/elasticsearch.yml   # add to end of file # change to your host ip if over network
http.port: 9200


}»install kibana

# cd /opt
# wget
# tar -zxvf kibana-4.5.0-linux-x64.tar.gz

# nano kibana-4.5.0-linux-x64/config/kibana.yml   # add to end of file

elasticsearch.url: “http://localhost:9200”

}»install td-agent plugins

# sudo apt-get install make libcurl4-gnutls-dev –yes
# sudo /opt/td-agent/embedded/bin/fluent-gem install fluent-plugin-elasticsearch
# sudo /opt/td-agent/embedded/bin/fluent-gem install fluent-plugin-record-reformer

# nano /etc/td-agent/td-agent.conf    # add to top of file and comment out any other lines

   @type tcp
   format json
   port 5514
   tag windowslog

#   @type stdout # use for testing         @type elasticsearch         host localhost         port 9200         index\_name fluentd         type\_name fluentd

I haven’t explored the pro’s and cons to this solution but one pro is no 500mb limits that Splunk would trip you over…

I suppose a con at this stage is the pivot features that splunk does have. I think it can be done with kibana but takes more effort.