3. Agenda
● Elastic stack
○ Arch.
■ Open Source
■ License
● How to establish a simple Elastic Stack ?
○ filebeat
○ elasticsearch
○ kibana
● Use Case: How to convert “log timestamp” to be “sort standard”
○ logstash
● Q & A
● WeMo Scooter
3
5. Overview
● Elastic's open source solutions solve a growing list of search and log analysis.
● Helps you take data from any source, any format and search, analyze, and
visualize it in real time.
5
19. Elasticsearch - Deploy by RPM
Category Explanation Destination
conf Configuration files elasticsearch.yml and logging.yml. /etc/elasticsearch
conf Environment variables including heap size, file descriptors. /etc/sysconfig/elasticsearch
19
20. Elasticsearch - Heap Tuning
https://www.elastic.co/guide/en/elasticsearch/guide/current/heap-sizing.html
● Give (less than) Half Your Memory to Lucene
○ Lucene need memory to interact with the OS.
● Don’t Cross 32 GB!
○ Compressed oops(Ordinary object pointers) have a upper boundary (~ 32 GB)
■ 32-bit pointer can reference four billion objects, rather than four billion bytes
20
28. Logstash - Filter plugins
28
grok
● https://www.elastic.co/guide/en/logstash/current/p
lugins-filters-grok.html
● Parse arbitrary text and structure it.
● Grok is currently the best way in logstash to
parse crappy unstructured log data into
something structured and queryable.
date
● https://www.elastic.co/guide/en/logstash/current/p
lugins-filters-date.html
● The date filter is used for parsing dates from
fields, and then using that date or timestamp as
the logstash timestamp for the event.
29. Logstash - Filter of Config
29
PREFIX_TIMESTAMP ^[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2},[0-9]{3}
32. WeMo Scooter
32
Official Website
● http://www.wemoscooter.com/
Video Introduction
● https://www.youtube.com/watch?v=Ne1kg3KeoRs
If you want to be a software engineer with us….
● len.chang@wemoscooter.com
○ Assistant software engineer / software engineer
■ Django / Python
■ ASP.NET MVC 5 / C#
■ Others...