SlideShare una empresa de Scribd logo
1 de 38
Descargar para leer sin conexión
Logstash	
  Family	
  Introduc4on
Owen
What	
  is	
  a	
  log
•  Oxford	
  Dic4onary	
  
– a	
  thick	
  piece	
  of	
  wood	
  that	
  is	
  cut	
  from	
  or	
  has	
  fallen	
  
from	
  a	
  tree	
  
– (also	
  logbook)	
  an	
  official	
  record	
  of	
  events	
  during	
  a	
  
par4cular	
  period	
  of	
  4me,	
  especially	
  a	
  journey	
  on	
  a	
  
ship	
  	
  
•  4me	
  +	
  data	
  
	
   	
  	
  
In	
  theory,	
  life	
  cycle	
  of	
  log
Record
Transmit
Analyze
Store
Delete
In	
  design,	
  life	
  cycle	
  of	
  log
Record
Transmit
Store
Delete
In	
  fact,	
  life	
  cycle	
  of	
  log
Record
Delete
Problems
•  Logging	
  to	
  a	
  database	
  or	
  filesysytem	
  
•  Logging	
  has	
  placed	
  a	
  load	
  on	
  the	
  database	
  and	
  
filesystem	
  
•  Mul4ple	
  log	
  	
  formats	
  
•  No	
  easy	
  way	
  to	
  search	
  logs	
  
•  No	
  easy	
  method	
  to	
  gather	
  sta4s4cs	
  
Find	
  the	
  logs	
  of	
  16	
  computers	
  6	
  
months	
  ago	
  ?
Why	
  use	
  Logstash?
•  A lot choices!	

•  But we want a free & high-integrality &
easy to use solution
•  splunk (finding your faults, just like mom)
•  facebookarchive/scribe (2682 ★)
•  Graylog2(Server+WUI 1683 ★)
•  fluentd (2038 ★)
•  logstash (2689 ★)
logstash	
  and	
  other	
  things
hRps://www.youtube.com/watch?v=RuUFnog29M4
Logstash
•  Open	
  Source,	
  Apache	
  Licence	
  
•  WriRen	
  in	
  JRuby,	
  Runs	
  on	
  JVM	
  
•  Plugins	
  easily	
  wriRen	
  in	
  Ruby	
  
•  Process	
  mul4ple	
  format	
  (	
  input,	
  output	
  )	
  
•  Logstash	
  Family!	
  (	
  Elas4cSearch	
  ,	
  Kibana)	
  
LogStash	
  Family	
  architecture
Elas4cSearch
•  A	
  response	
  to	
  the	
  claim	
  :	
  “Search	
  is	
  hard”	
  
•  Powerful	
  indexing	
  &	
  search	
  tool	
  
•  search	
  &	
  index	
  data	
  available	
  Rescully	
  as	
  
JSON	
  over	
  HTTP	
  
Kibana
All-­‐in-­‐one!
How logstash works?
•  logstash process events, not (only)
loglines!
•  “The logstash agent is a processing
pipeline with 3 stages:
– inputs -> filters -> outputs.”
– separate threads
•  “Inputs generate events, filters modify
them, outputs ship them elsewhere.”
•  -- [the life of an event in logstash]	

In	
  my	
  thinking,	
  Event	
  Life	
  Cycle
Input
filter	
  	
  
output
In	
  fact,	
  Event	
  Life	
  Cycle
event	
  (Input	
  -­‐>	
  output)
event	
  
-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐	
  
input	
  
filter	
  	
  
output
Logstash	
  is	
  a	
  wooden	
  tube
Input
Input
Input
filter
output
codec
filter
 filter
output
output
Logstash	
  plugins	
  Workflow 	
  
•  inputs	
  
–  How	
  events	
  get	
  into	
  LogStash.	
  
•  codecs	
  	
  
–  	
  convert	
  an	
  incoming	
  format	
  into	
  an	
  internal	
  	
  
representa4on	
  
•  filters	
  
–  	
  processing	
  ac4ons	
  on	
  events	
  :	
  modify	
  events	
  or	
  drop	
  
events	
  
•  outputs	
  
–  How	
  output	
  events	
  from	
  LogStash
Logstash	
  plugins
What	
  is	
  an	
  event!?
•  A	
  @4mestamp	
  (ISO	
  8601	
  4mestamp)	
  
•  A	
  messsage	
  field	
  (	
  data	
  )	
  
•  A	
  @version	
  
•  host	
  (	
  the	
  host	
  of	
  sender)	
  
•  type(	
  syslog,	
  irc,	
  etc)	
  
Exersice:	
  Hello	
  Word!
java	
  -­‐jar	
  logstash-­‐1.1.12-­‐flatjar.jar	
  agent	
  -­‐f	
  
hello.conf
java	
  -­‐jar	
  logstash.jar	
  agent	
  -­‐f	
  hello.conf
Input	
  
•  tcp	
  
•  udp	
  
•  unix	
  
•  file	
  
•  syslog	
  
•  redis	
  
•  logstash-­‐fowarder(former	
  Lumberjack)
Codecs
•  plain	
  
•  json	
  
•  rubydebug	
  
•  mul4line
Outputs	
  
•  mongodb	
  
•  elas4cSearch	
  
•  email	
  
•  file	
  
•  jira	
  
Exercise:	
  Mul4ple	
  input	
  &	
  output
logstash-­‐forwader
•  ♫	
  I'm	
  a	
  lumberjack	
  and	
  I'm	
  ok!	
  I	
  sleep	
  when	
  
idle,	
  then	
  I	
  ship	
  logs	
  all	
  day!	
  I	
  parse	
  your	
  logs,	
  I	
  
eat	
  the	
  JVM	
  agent	
  for	
  lunch!	
  ♫	
  
•  WriRen	
  in	
  Go	
  
•  lumberjack	
  is	
  reserved	
  for	
  protocol	
  
•  Resource	
  Usage	
  Concerns	
  
•  Need	
  an	
  SSL	
  CA	
  to	
  verify	
  the	
  server	
  
lumberjack
•  Encryp4on	
  &	
  Authen4ca4on	
  (TLS)	
  
•  Compression	
  (	
  reduce	
  bandwidth)	
  
•  Sequence	
  &	
  ack	
  behavior	
  like	
  TCP	
  
•  Low	
  latency	
  
•  Reliable	
  Aplica4on-­‐Level	
  message	
  transport
Forwarder	
  Sample
Filters	
  
•  date	
  
•  grok	
  
•  drop	
  
•  geoIP	
  
•  mutate 	
  	
  
•  mul4line	
  
Exercise:	
  Parse	
  Data
filter	
  config	
  
powerful	
  grok
•  Parse	
  arbitrary	
  text	
  and	
  structure	
  it.	
  
•  The	
  syntax	
  for	
  a	
  grok	
  paRern	
  is	
   	
  	
  
–  %{SYNTAX:SEMANTIC}	
  
•  55.3.244.1	
  	
  	
  	
  GET	
  	
  	
  	
  	
  /index.html	
  	
  	
  	
  	
  15824	
  
–  %{IP:client}	
  	
  
–  %{WORD:method}	
  	
  
–  %{URIPATHPARAM:request}	
  	
  
–  %{NUMBER:bytes}	
  
•  hRps://github.com/elas4csearch/logstash/blob/
v1.4.2/paRerns/grok-­‐paRerns	
  
grok	
  sample 	
  
drop
mutate	
  
•  Muta4ons	
  on	
  
fields.	
  	
  
– 	
  rename	
  
– 	
  remove	
  
– replace	
  
– join	
  
– split	
  
– upper	
  
– lower
mul4line
•  Codecs	
  &	
  filter
Reference
•  hRps://www.digitalocean.com/community/
tutorials/how-­‐to-­‐use-­‐logstash-­‐and-­‐kibana-­‐to-­‐
centralize-­‐and-­‐visualize-­‐logs-­‐on-­‐ubuntu-­‐14-­‐04	
  
•  hRp://www.vmdoh.com/blog/centralizing-­‐
logs-­‐lumberjack-­‐logstash-­‐and-­‐elas4csearch	
  
•  hRp://jpmens.net/2012/08/09/i-­‐grok-­‐how-­‐to-­‐
mutate-­‐a-­‐file-­‐with-­‐logstash/	
  
•  hRp://gleenders.blogspot.tw/2014/02/
logstash-­‐glassfish.html	
  

Más contenido relacionado

La actualidad más candente

Central LogFile Storage. ELK stack Elasticsearch, Logstash and Kibana.
Central LogFile Storage. ELK stack Elasticsearch, Logstash and Kibana.Central LogFile Storage. ELK stack Elasticsearch, Logstash and Kibana.
Central LogFile Storage. ELK stack Elasticsearch, Logstash and Kibana.Airat Khisamov
 
Journée DevOps : Des dashboards pour tous avec ElasticSearch, Logstash et Kibana
Journée DevOps : Des dashboards pour tous avec ElasticSearch, Logstash et KibanaJournée DevOps : Des dashboards pour tous avec ElasticSearch, Logstash et Kibana
Journée DevOps : Des dashboards pour tous avec ElasticSearch, Logstash et KibanaPublicis Sapient Engineering
 
Attack monitoring using ElasticSearch Logstash and Kibana
Attack monitoring using ElasticSearch Logstash and KibanaAttack monitoring using ElasticSearch Logstash and Kibana
Attack monitoring using ElasticSearch Logstash and KibanaPrajal Kulkarni
 
Machine Learning in a Twitter ETL using ELK
Machine Learning in a Twitter ETL using ELK Machine Learning in a Twitter ETL using ELK
Machine Learning in a Twitter ETL using ELK hypto
 
Logstash + Elasticsearch + Kibana Presentation on Startit Tech Meetup
Logstash + Elasticsearch + Kibana Presentation on Startit Tech MeetupLogstash + Elasticsearch + Kibana Presentation on Startit Tech Meetup
Logstash + Elasticsearch + Kibana Presentation on Startit Tech MeetupStartit
 
Learn ELK in docker
Learn ELK in dockerLearn ELK in docker
Learn ELK in dockerLarry Cai
 
Monitoring with Graylog - a modern approach to monitoring?
Monitoring with Graylog - a modern approach to monitoring?Monitoring with Graylog - a modern approach to monitoring?
Monitoring with Graylog - a modern approach to monitoring?inovex GmbH
 
Null Bachaav - May 07 Attack Monitoring workshop.
Null Bachaav - May 07 Attack Monitoring workshop.Null Bachaav - May 07 Attack Monitoring workshop.
Null Bachaav - May 07 Attack Monitoring workshop.Prajal Kulkarni
 
How ElasticSearch lives in my DevOps life
How ElasticSearch lives in my DevOps lifeHow ElasticSearch lives in my DevOps life
How ElasticSearch lives in my DevOps life琛琳 饶
 
Scaling an ELK stack at bol.com
Scaling an ELK stack at bol.comScaling an ELK stack at bol.com
Scaling an ELK stack at bol.comRenzo Tomà
 
Monitoring Docker with ELK
Monitoring Docker with ELKMonitoring Docker with ELK
Monitoring Docker with ELKDaniel Berman
 
Elasticsearch, Logstash, Kibana. Cool search, analytics, data mining and more...
Elasticsearch, Logstash, Kibana. Cool search, analytics, data mining and more...Elasticsearch, Logstash, Kibana. Cool search, analytics, data mining and more...
Elasticsearch, Logstash, Kibana. Cool search, analytics, data mining and more...Oleksiy Panchenko
 
Large Scale Log collection using LogStash & mongoDB
Large Scale Log collection using LogStash & mongoDB Large Scale Log collection using LogStash & mongoDB
Large Scale Log collection using LogStash & mongoDB Gaurav Bhardwaj
 
Customer Intelligence: Using the ELK Stack to Analyze ForgeRock OpenAM Audit ...
Customer Intelligence: Using the ELK Stack to Analyze ForgeRock OpenAM Audit ...Customer Intelligence: Using the ELK Stack to Analyze ForgeRock OpenAM Audit ...
Customer Intelligence: Using the ELK Stack to Analyze ForgeRock OpenAM Audit ...ForgeRock
 
Tuning Elasticsearch Indexing Pipeline for Logs
Tuning Elasticsearch Indexing Pipeline for LogsTuning Elasticsearch Indexing Pipeline for Logs
Tuning Elasticsearch Indexing Pipeline for LogsSematext Group, Inc.
 

La actualidad más candente (20)

Central LogFile Storage. ELK stack Elasticsearch, Logstash and Kibana.
Central LogFile Storage. ELK stack Elasticsearch, Logstash and Kibana.Central LogFile Storage. ELK stack Elasticsearch, Logstash and Kibana.
Central LogFile Storage. ELK stack Elasticsearch, Logstash and Kibana.
 
LogStash in action
LogStash in actionLogStash in action
LogStash in action
 
Journée DevOps : Des dashboards pour tous avec ElasticSearch, Logstash et Kibana
Journée DevOps : Des dashboards pour tous avec ElasticSearch, Logstash et KibanaJournée DevOps : Des dashboards pour tous avec ElasticSearch, Logstash et Kibana
Journée DevOps : Des dashboards pour tous avec ElasticSearch, Logstash et Kibana
 
Using Logstash, elasticsearch & kibana
Using Logstash, elasticsearch & kibanaUsing Logstash, elasticsearch & kibana
Using Logstash, elasticsearch & kibana
 
Attack monitoring using ElasticSearch Logstash and Kibana
Attack monitoring using ElasticSearch Logstash and KibanaAttack monitoring using ElasticSearch Logstash and Kibana
Attack monitoring using ElasticSearch Logstash and Kibana
 
Machine Learning in a Twitter ETL using ELK
Machine Learning in a Twitter ETL using ELK Machine Learning in a Twitter ETL using ELK
Machine Learning in a Twitter ETL using ELK
 
Elk stack
Elk stackElk stack
Elk stack
 
Logstash + Elasticsearch + Kibana Presentation on Startit Tech Meetup
Logstash + Elasticsearch + Kibana Presentation on Startit Tech MeetupLogstash + Elasticsearch + Kibana Presentation on Startit Tech Meetup
Logstash + Elasticsearch + Kibana Presentation on Startit Tech Meetup
 
Learn ELK in docker
Learn ELK in dockerLearn ELK in docker
Learn ELK in docker
 
Monitoring with Graylog - a modern approach to monitoring?
Monitoring with Graylog - a modern approach to monitoring?Monitoring with Graylog - a modern approach to monitoring?
Monitoring with Graylog - a modern approach to monitoring?
 
elk_stack_alexander_szalonnas
elk_stack_alexander_szalonnaselk_stack_alexander_szalonnas
elk_stack_alexander_szalonnas
 
ELK Stack
ELK StackELK Stack
ELK Stack
 
Null Bachaav - May 07 Attack Monitoring workshop.
Null Bachaav - May 07 Attack Monitoring workshop.Null Bachaav - May 07 Attack Monitoring workshop.
Null Bachaav - May 07 Attack Monitoring workshop.
 
How ElasticSearch lives in my DevOps life
How ElasticSearch lives in my DevOps lifeHow ElasticSearch lives in my DevOps life
How ElasticSearch lives in my DevOps life
 
Scaling an ELK stack at bol.com
Scaling an ELK stack at bol.comScaling an ELK stack at bol.com
Scaling an ELK stack at bol.com
 
Monitoring Docker with ELK
Monitoring Docker with ELKMonitoring Docker with ELK
Monitoring Docker with ELK
 
Elasticsearch, Logstash, Kibana. Cool search, analytics, data mining and more...
Elasticsearch, Logstash, Kibana. Cool search, analytics, data mining and more...Elasticsearch, Logstash, Kibana. Cool search, analytics, data mining and more...
Elasticsearch, Logstash, Kibana. Cool search, analytics, data mining and more...
 
Large Scale Log collection using LogStash & mongoDB
Large Scale Log collection using LogStash & mongoDB Large Scale Log collection using LogStash & mongoDB
Large Scale Log collection using LogStash & mongoDB
 
Customer Intelligence: Using the ELK Stack to Analyze ForgeRock OpenAM Audit ...
Customer Intelligence: Using the ELK Stack to Analyze ForgeRock OpenAM Audit ...Customer Intelligence: Using the ELK Stack to Analyze ForgeRock OpenAM Audit ...
Customer Intelligence: Using the ELK Stack to Analyze ForgeRock OpenAM Audit ...
 
Tuning Elasticsearch Indexing Pipeline for Logs
Tuning Elasticsearch Indexing Pipeline for LogsTuning Elasticsearch Indexing Pipeline for Logs
Tuning Elasticsearch Indexing Pipeline for Logs
 

Similar a Logstash family introduction

Messaging, interoperability and log aggregation - a new framework
Messaging, interoperability and log aggregation - a new frameworkMessaging, interoperability and log aggregation - a new framework
Messaging, interoperability and log aggregation - a new frameworkTomas Doran
 
London devops logging
London devops loggingLondon devops logging
London devops loggingTomas Doran
 
Message:Passing - lpw 2012
Message:Passing - lpw 2012Message:Passing - lpw 2012
Message:Passing - lpw 2012Tomas Doran
 
OSMC 2016 - Monitor your infrastructure with Elastic Beats by Monica Sarbu
OSMC 2016 - Monitor your infrastructure with Elastic Beats by Monica SarbuOSMC 2016 - Monitor your infrastructure with Elastic Beats by Monica Sarbu
OSMC 2016 - Monitor your infrastructure with Elastic Beats by Monica SarbuNETWAYS
 
OSMC 2016 | Monitor your Infrastructure with Elastic Beats by Monica Sarbu
OSMC 2016 | Monitor your Infrastructure with Elastic Beats by Monica SarbuOSMC 2016 | Monitor your Infrastructure with Elastic Beats by Monica Sarbu
OSMC 2016 | Monitor your Infrastructure with Elastic Beats by Monica SarbuNETWAYS
 
elkstack-161217091231.pdf
elkstack-161217091231.pdfelkstack-161217091231.pdf
elkstack-161217091231.pdfAgusNursidik
 
Performance and Abstractions
Performance and AbstractionsPerformance and Abstractions
Performance and AbstractionsMetosin Oy
 
ELK stack introduction
ELK stack introduction ELK stack introduction
ELK stack introduction abenyeung1
 
NSLogger - Cocoaheads Paris Presentation - English
NSLogger - Cocoaheads Paris Presentation - EnglishNSLogger - Cocoaheads Paris Presentation - English
NSLogger - Cocoaheads Paris Presentation - EnglishFlorent Pillet
 
2013 CrossRef Workshops System Update: Guarding Your Data, Andrew Gilmartin
2013 CrossRef Workshops System Update: Guarding Your Data, Andrew Gilmartin2013 CrossRef Workshops System Update: Guarding Your Data, Andrew Gilmartin
2013 CrossRef Workshops System Update: Guarding Your Data, Andrew GilmartinCrossref
 
An Efficient Backup and Replication of Storage
An Efficient Backup and Replication of StorageAn Efficient Backup and Replication of Storage
An Efficient Backup and Replication of StorageTakashi Hoshino
 
Performance optimization - JavaScript
Performance optimization - JavaScriptPerformance optimization - JavaScript
Performance optimization - JavaScriptFilip Mares
 
VictoriaLogs: Open Source Log Management System - Preview
VictoriaLogs: Open Source Log Management System - PreviewVictoriaLogs: Open Source Log Management System - Preview
VictoriaLogs: Open Source Log Management System - PreviewVictoriaMetrics
 
AWS re:Invent presentation: Unmeltable Infrastructure at Scale by Loggly
AWS re:Invent presentation: Unmeltable Infrastructure at Scale by Loggly AWS re:Invent presentation: Unmeltable Infrastructure at Scale by Loggly
AWS re:Invent presentation: Unmeltable Infrastructure at Scale by Loggly SolarWinds Loggly
 
Taming the resource tiger
Taming the resource tigerTaming the resource tiger
Taming the resource tigerElizabeth Smith
 
Cooking a rabbit pie
Cooking a rabbit pieCooking a rabbit pie
Cooking a rabbit pieTomas Doran
 
State of the art logging
State of the art loggingState of the art logging
State of the art loggingMilan Vukoje
 
Logging Application Behavior to MongoDB
Logging Application Behavior to MongoDBLogging Application Behavior to MongoDB
Logging Application Behavior to MongoDBRobert Stewart
 
Ruby and Distributed Storage Systems
Ruby and Distributed Storage SystemsRuby and Distributed Storage Systems
Ruby and Distributed Storage SystemsSATOSHI TAGOMORI
 

Similar a Logstash family introduction (20)

Messaging, interoperability and log aggregation - a new framework
Messaging, interoperability and log aggregation - a new frameworkMessaging, interoperability and log aggregation - a new framework
Messaging, interoperability and log aggregation - a new framework
 
London devops logging
London devops loggingLondon devops logging
London devops logging
 
Message:Passing - lpw 2012
Message:Passing - lpw 2012Message:Passing - lpw 2012
Message:Passing - lpw 2012
 
Zero mq logs
Zero mq logsZero mq logs
Zero mq logs
 
OSMC 2016 - Monitor your infrastructure with Elastic Beats by Monica Sarbu
OSMC 2016 - Monitor your infrastructure with Elastic Beats by Monica SarbuOSMC 2016 - Monitor your infrastructure with Elastic Beats by Monica Sarbu
OSMC 2016 - Monitor your infrastructure with Elastic Beats by Monica Sarbu
 
OSMC 2016 | Monitor your Infrastructure with Elastic Beats by Monica Sarbu
OSMC 2016 | Monitor your Infrastructure with Elastic Beats by Monica SarbuOSMC 2016 | Monitor your Infrastructure with Elastic Beats by Monica Sarbu
OSMC 2016 | Monitor your Infrastructure with Elastic Beats by Monica Sarbu
 
elkstack-161217091231.pdf
elkstack-161217091231.pdfelkstack-161217091231.pdf
elkstack-161217091231.pdf
 
Performance and Abstractions
Performance and AbstractionsPerformance and Abstractions
Performance and Abstractions
 
ELK stack introduction
ELK stack introduction ELK stack introduction
ELK stack introduction
 
NSLogger - Cocoaheads Paris Presentation - English
NSLogger - Cocoaheads Paris Presentation - EnglishNSLogger - Cocoaheads Paris Presentation - English
NSLogger - Cocoaheads Paris Presentation - English
 
2013 CrossRef Workshops System Update: Guarding Your Data, Andrew Gilmartin
2013 CrossRef Workshops System Update: Guarding Your Data, Andrew Gilmartin2013 CrossRef Workshops System Update: Guarding Your Data, Andrew Gilmartin
2013 CrossRef Workshops System Update: Guarding Your Data, Andrew Gilmartin
 
An Efficient Backup and Replication of Storage
An Efficient Backup and Replication of StorageAn Efficient Backup and Replication of Storage
An Efficient Backup and Replication of Storage
 
Performance optimization - JavaScript
Performance optimization - JavaScriptPerformance optimization - JavaScript
Performance optimization - JavaScript
 
VictoriaLogs: Open Source Log Management System - Preview
VictoriaLogs: Open Source Log Management System - PreviewVictoriaLogs: Open Source Log Management System - Preview
VictoriaLogs: Open Source Log Management System - Preview
 
AWS re:Invent presentation: Unmeltable Infrastructure at Scale by Loggly
AWS re:Invent presentation: Unmeltable Infrastructure at Scale by Loggly AWS re:Invent presentation: Unmeltable Infrastructure at Scale by Loggly
AWS re:Invent presentation: Unmeltable Infrastructure at Scale by Loggly
 
Taming the resource tiger
Taming the resource tigerTaming the resource tiger
Taming the resource tiger
 
Cooking a rabbit pie
Cooking a rabbit pieCooking a rabbit pie
Cooking a rabbit pie
 
State of the art logging
State of the art loggingState of the art logging
State of the art logging
 
Logging Application Behavior to MongoDB
Logging Application Behavior to MongoDBLogging Application Behavior to MongoDB
Logging Application Behavior to MongoDB
 
Ruby and Distributed Storage Systems
Ruby and Distributed Storage SystemsRuby and Distributed Storage Systems
Ruby and Distributed Storage Systems
 

Último

OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 

Último (20)

OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 

Logstash family introduction

  • 2. What  is  a  log •  Oxford  Dic4onary   – a  thick  piece  of  wood  that  is  cut  from  or  has  fallen   from  a  tree   – (also  logbook)  an  official  record  of  events  during  a   par4cular  period  of  4me,  especially  a  journey  on  a   ship     •  4me  +  data        
  • 3. In  theory,  life  cycle  of  log Record Transmit Analyze Store Delete
  • 4. In  design,  life  cycle  of  log Record Transmit Store Delete
  • 5. In  fact,  life  cycle  of  log Record Delete
  • 6. Problems •  Logging  to  a  database  or  filesysytem   •  Logging  has  placed  a  load  on  the  database  and   filesystem   •  Mul4ple  log    formats   •  No  easy  way  to  search  logs   •  No  easy  method  to  gather  sta4s4cs  
  • 7. Find  the  logs  of  16  computers  6   months  ago  ?
  • 8. Why  use  Logstash? •  A lot choices!  •  But we want a free & high-integrality & easy to use solution •  splunk (finding your faults, just like mom) •  facebookarchive/scribe (2682 ★) •  Graylog2(Server+WUI 1683 ★) •  fluentd (2038 ★) •  logstash (2689 ★)
  • 9. logstash  and  other  things hRps://www.youtube.com/watch?v=RuUFnog29M4
  • 10. Logstash •  Open  Source,  Apache  Licence   •  WriRen  in  JRuby,  Runs  on  JVM   •  Plugins  easily  wriRen  in  Ruby   •  Process  mul4ple  format  (  input,  output  )   •  Logstash  Family!  (  Elas4cSearch  ,  Kibana)  
  • 12. Elas4cSearch •  A  response  to  the  claim  :  “Search  is  hard”   •  Powerful  indexing  &  search  tool   •  search  &  index  data  available  Rescully  as   JSON  over  HTTP  
  • 15. How logstash works? •  logstash process events, not (only) loglines! •  “The logstash agent is a processing pipeline with 3 stages: – inputs -> filters -> outputs.” – separate threads •  “Inputs generate events, filters modify them, outputs ship them elsewhere.” •  -- [the life of an event in logstash] 
  • 16. In  my  thinking,  Event  Life  Cycle Input filter     output
  • 17. In  fact,  Event  Life  Cycle event  (Input  -­‐>  output) event   -­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐   input   filter     output
  • 18. Logstash  is  a  wooden  tube Input Input Input filter output codec filter filter output output
  • 19. Logstash  plugins  Workflow   •  inputs   –  How  events  get  into  LogStash.   •  codecs     –   convert  an  incoming  format  into  an  internal     representa4on   •  filters   –   processing  ac4ons  on  events  :  modify  events  or  drop   events   •  outputs   –  How  output  events  from  LogStash
  • 21. What  is  an  event!? •  A  @4mestamp  (ISO  8601  4mestamp)   •  A  messsage  field  (  data  )   •  A  @version   •  host  (  the  host  of  sender)   •  type(  syslog,  irc,  etc)  
  • 22. Exersice:  Hello  Word! java  -­‐jar  logstash-­‐1.1.12-­‐flatjar.jar  agent  -­‐f   hello.conf java  -­‐jar  logstash.jar  agent  -­‐f  hello.conf
  • 23. Input   •  tcp   •  udp   •  unix   •  file   •  syslog   •  redis   •  logstash-­‐fowarder(former  Lumberjack)
  • 24. Codecs •  plain   •  json   •  rubydebug   •  mul4line
  • 25. Outputs   •  mongodb   •  elas4cSearch   •  email   •  file   •  jira  
  • 27. logstash-­‐forwader •  ♫  I'm  a  lumberjack  and  I'm  ok!  I  sleep  when   idle,  then  I  ship  logs  all  day!  I  parse  your  logs,  I   eat  the  JVM  agent  for  lunch!  ♫   •  WriRen  in  Go   •  lumberjack  is  reserved  for  protocol   •  Resource  Usage  Concerns   •  Need  an  SSL  CA  to  verify  the  server  
  • 28. lumberjack •  Encryp4on  &  Authen4ca4on  (TLS)   •  Compression  (  reduce  bandwidth)   •  Sequence  &  ack  behavior  like  TCP   •  Low  latency   •  Reliable  Aplica4on-­‐Level  message  transport
  • 30. Filters   •  date   •  grok   •  drop   •  geoIP   •  mutate     •  mul4line  
  • 33. powerful  grok •  Parse  arbitrary  text  and  structure  it.   •  The  syntax  for  a  grok  paRern  is       –  %{SYNTAX:SEMANTIC}   •  55.3.244.1        GET          /index.html          15824   –  %{IP:client}     –  %{WORD:method}     –  %{URIPATHPARAM:request}     –  %{NUMBER:bytes}   •  hRps://github.com/elas4csearch/logstash/blob/ v1.4.2/paRerns/grok-­‐paRerns  
  • 35. drop
  • 36. mutate   •  Muta4ons  on   fields.     –   rename   –   remove   – replace   – join   – split   – upper   – lower
  • 38. Reference •  hRps://www.digitalocean.com/community/ tutorials/how-­‐to-­‐use-­‐logstash-­‐and-­‐kibana-­‐to-­‐ centralize-­‐and-­‐visualize-­‐logs-­‐on-­‐ubuntu-­‐14-­‐04   •  hRp://www.vmdoh.com/blog/centralizing-­‐ logs-­‐lumberjack-­‐logstash-­‐and-­‐elas4csearch   •  hRp://jpmens.net/2012/08/09/i-­‐grok-­‐how-­‐to-­‐ mutate-­‐a-­‐file-­‐with-­‐logstash/   •  hRp://gleenders.blogspot.tw/2014/02/ logstash-­‐glassfish.html