About

Tomasz Nazar

Software developer for 10+ years

Focused on OO, domain modelling, code readability

Went pro with Java, to end up as passionate Ruby-ist. (bit of Python / JS too)

Co-founder of Gameboxed.

The quickest way to contact me is via email:
tomasz.nazar@aspectized.com or twitter @nthx17

Recent Posts

ElasticSearch 2 stack on Odroid / Ubuntu 15

This post covers setting up ELK 2.0 stack on Odroid XU3-Lite Ubuntu 15 (ARM)

Highlights:

  • using official Java from Oracle (8, armv6_vfp_hflt)
  • ElasticSearch: 2.0, Kibana 4.2.0, Logstash 2.0
  • Kibana libjffi-1.2.so still doesn’t work for Odroid / Open JDK 7,8

Java had to be installed from Oracle in order to work with Kibana. Open JDK 7 failed with segfault. Open JDK 8 didn’t start Kibana

  • #export JAVA_HOME=.../jre

ElasticSearch installation was fairly straightforward

Kibana was bit complex, due to lack of binaries for ARM arch and Node.js requirement

  • download 4.2.x, https://www.elastic.co/downloads/kibana
  • as there are no binaries on the homepage, so I went for git master branch (4.3.0 at time of writing)
    • git clone https://github.com/elastic/kibana
  • latest master doesn’t work with ElasticSearch < 2.1, so I had to roll back sources manually to v4.2.0 (as this one is compatible with ES 2.0 being installed above)
    • cd kibana; git checkout v4.2.0
  • Kibana requires node.js. That somehow is not communicated in README

Logstash was a pain to install on previous Odroid Ubuntu, and same problem appear again

Examples

Delete all data from Elastic Search

curl -XDELETE 'http://localhost:9200/_all'

Make Logstash parse stdin

created_at:1447939192,sensor:sensor0,temperature:54000
created_at:1447939192,sensor:sensor1,temperature:52000
#cat logstash-cpu_temp-to-es.conf
input {
 stdin { }
}

filter {
 grok {
   match => { message => "created_at:%{NUMBER:created_at:int},sensor:%{WORD:sensor},temperature:%{NUMBER:temperature:int}" }
  }
  date { match => ["created_at", "UNIX"] }
}
output {
 stdout { codec => dots }
 elasticsearch { hosts => ["localhost:9200"] }
}
sudo ~/bin/my.ls.odroid.cpu_temp.sh | ./bin/logstash -f logstash-monitocpu_temp-to-es.conf
  1. Shared directory over network of few Raspberry PIs, Odroid and a laptop Leave a reply
  2. Odroid XU3 Lite arrived – setup tips Leave a reply