SlideShare a Scribd company logo
1 of 25
Download to read offline
Hart Hoover | @hhoover
Josh O’Brien | @OBrienCommaJosh
@SADevOps
fluentd
Log all the things
to all the things!
…in JSON!
input&{&
&&file&{&
&&&&path&=>&"/var/log/http.log"&
&&}&
}&
filter&{&
&&grok&{&
&&&&match&=>&[&"message",&"%{IP:client}&%
{WORD:method}&%{URIPATHPARAM:request}&%
{NUMBER:bytes}&%{NUMBER:duration}"&]&
&&}&
}
Fluentd Events
Time Tag
Record
passed from source
or
adding a parsed time
message
routing in fluentd
JSON
#&receive&events&via&HTTP&&
<source>&&
type&http&&
port&8888&&
</source>
#&read&logs&from&a&file&&
<source>&&
type&tail

path&/var/log/httpd.log&
format&apache

tag&apache.access&&
</source>
#&DOCKER&OMG&
<source>&
&&type&tail&
&&format&json&
&&path&/var/lib/docker/containers/ID/IDYjson.log&
&&pos_file&/var/lib/docker/containers/ID/IDY
json.log.pos&
&&tag&docker.container&
&&rotate_wait&5&
&&read_from_head&true&
</source>
#&save&alerts&to&a&file&&
<match&alert.**>&&
type&file&&
path&/var/log/fluent/alerts&&
</match>
#&save&access&logs&to&MongoDB&&
<match&apache.access>&&
type&mongo&
database&apache&
collection&log&&
</match>&
#&Post&to&IRC&
<match&**>&
&&type&irc&
&&host&localhost&
&&port&6667&
&&channel&fluentd&
&&nick&fluentd&
&&user&fluentd&
&&real&fluentd&
&&message&notice:&%s&[%s]&%s&
&&out_keys&tag,time,message&
&&time_key&time&
&&time_format&%Y/%m/%d&%H:%M:%S&
&&tag_key&tag&
</match>
#&forward&other&logs&to&servers&&
<match&**>&&
type&forward&
&&<server>&&
&&&&host&192.168.0.11&&
&&&&weight&20&&
&&</server>&
&&<server>&&
&&&&host&192.168.0.12&&
&&&&weight&60&&
&&</server>

</match>
#&Send&logs&to&ElasticSearch&
<match&**>&
&&type&elasticsearch&
&&logstash_format&true&
&&host&localhost&
&&port&9200&
&&index_name&fluentd&
</match>
Client Libraries
Ruby
Python
Java
PHP
Node.JS
Scala
https://github.com/treasure-data/chef-td-agent
Install with Chef
Vagrantfile
& kitchen.yml included!
https://github.com/dmytro/fluentd-cookbook
Possibly Better
https://gist.github.com/hhoover/4fceb09148a73f45136a
@SADevOps
http://meetup.com/SanAntonioDevOps

More Related Content

Viewers also liked

1 encu-escritra-clau-correcion
1 encu-escritra-clau-correcion1 encu-escritra-clau-correcion
1 encu-escritra-clau-correcionDiego Solano
 
Tearing Down Silos and Building Your Enterprise Dev/Ops Engine
Tearing Down Silos and Building Your Enterprise Dev/Ops EngineTearing Down Silos and Building Your Enterprise Dev/Ops Engine
Tearing Down Silos and Building Your Enterprise Dev/Ops EngineRackspace
 
Enterprise Open Cloud Forum: The Cloud is Making it Rain
Enterprise Open Cloud Forum: The Cloud is Making it RainEnterprise Open Cloud Forum: The Cloud is Making it Rain
Enterprise Open Cloud Forum: The Cloud is Making it RainRackspace
 
Straight Up Startup…Featuring Eli Rosenberg, COO & Co-Founder of Food Genius
Straight Up Startup…Featuring Eli Rosenberg, COO & Co-Founder of Food GeniusStraight Up Startup…Featuring Eli Rosenberg, COO & Co-Founder of Food Genius
Straight Up Startup…Featuring Eli Rosenberg, COO & Co-Founder of Food GeniusRackspace
 
Scaling Xen Within Rackspace Cloud Servers
Scaling Xen Within Rackspace Cloud ServersScaling Xen Within Rackspace Cloud Servers
Scaling Xen Within Rackspace Cloud ServersRackspace
 
Curing the 'Migration Migraine' with SharePoint Hosting
Curing the 'Migration Migraine' with SharePoint HostingCuring the 'Migration Migraine' with SharePoint Hosting
Curing the 'Migration Migraine' with SharePoint HostingRackspace
 
Jason Pannell Resume
Jason Pannell ResumeJason Pannell Resume
Jason Pannell ResumeJason Pannell
 
Rackspace Analytical Compute Grid (ACG)
Rackspace Analytical Compute Grid (ACG)Rackspace Analytical Compute Grid (ACG)
Rackspace Analytical Compute Grid (ACG)Rackspace
 
Rackspace::Solve NYC - The Future of Applications with Ken Cochrane, Engineer...
Rackspace::Solve NYC - The Future of Applications with Ken Cochrane, Engineer...Rackspace::Solve NYC - The Future of Applications with Ken Cochrane, Engineer...
Rackspace::Solve NYC - The Future of Applications with Ken Cochrane, Engineer...Rackspace
 

Viewers also liked (9)

1 encu-escritra-clau-correcion
1 encu-escritra-clau-correcion1 encu-escritra-clau-correcion
1 encu-escritra-clau-correcion
 
Tearing Down Silos and Building Your Enterprise Dev/Ops Engine
Tearing Down Silos and Building Your Enterprise Dev/Ops EngineTearing Down Silos and Building Your Enterprise Dev/Ops Engine
Tearing Down Silos and Building Your Enterprise Dev/Ops Engine
 
Enterprise Open Cloud Forum: The Cloud is Making it Rain
Enterprise Open Cloud Forum: The Cloud is Making it RainEnterprise Open Cloud Forum: The Cloud is Making it Rain
Enterprise Open Cloud Forum: The Cloud is Making it Rain
 
Straight Up Startup…Featuring Eli Rosenberg, COO & Co-Founder of Food Genius
Straight Up Startup…Featuring Eli Rosenberg, COO & Co-Founder of Food GeniusStraight Up Startup…Featuring Eli Rosenberg, COO & Co-Founder of Food Genius
Straight Up Startup…Featuring Eli Rosenberg, COO & Co-Founder of Food Genius
 
Scaling Xen Within Rackspace Cloud Servers
Scaling Xen Within Rackspace Cloud ServersScaling Xen Within Rackspace Cloud Servers
Scaling Xen Within Rackspace Cloud Servers
 
Curing the 'Migration Migraine' with SharePoint Hosting
Curing the 'Migration Migraine' with SharePoint HostingCuring the 'Migration Migraine' with SharePoint Hosting
Curing the 'Migration Migraine' with SharePoint Hosting
 
Jason Pannell Resume
Jason Pannell ResumeJason Pannell Resume
Jason Pannell Resume
 
Rackspace Analytical Compute Grid (ACG)
Rackspace Analytical Compute Grid (ACG)Rackspace Analytical Compute Grid (ACG)
Rackspace Analytical Compute Grid (ACG)
 
Rackspace::Solve NYC - The Future of Applications with Ken Cochrane, Engineer...
Rackspace::Solve NYC - The Future of Applications with Ken Cochrane, Engineer...Rackspace::Solve NYC - The Future of Applications with Ken Cochrane, Engineer...
Rackspace::Solve NYC - The Future of Applications with Ken Cochrane, Engineer...
 

More from Hart Hoover

CI/CD with Kubernetes
CI/CD with KubernetesCI/CD with Kubernetes
CI/CD with KubernetesHart Hoover
 
CI/CD with Docker on AWS
CI/CD with Docker on AWSCI/CD with Docker on AWS
CI/CD with Docker on AWSHart Hoover
 
Ignite Talk: "Building a DevOps Community" / DevOps Days Austin 2015
Ignite Talk: "Building a DevOps Community" / DevOps Days Austin 2015Ignite Talk: "Building a DevOps Community" / DevOps Days Austin 2015
Ignite Talk: "Building a DevOps Community" / DevOps Days Austin 2015Hart Hoover
 
San Antonio Chef Users Meetup, Jun 2014 - Chef Metal
San Antonio Chef Users Meetup, Jun 2014 - Chef MetalSan Antonio Chef Users Meetup, Jun 2014 - Chef Metal
San Antonio Chef Users Meetup, Jun 2014 - Chef MetalHart Hoover
 
Making TDD [Somewhat] Bearable on OpenStack
Making TDD [Somewhat] Bearable on OpenStackMaking TDD [Somewhat] Bearable on OpenStack
Making TDD [Somewhat] Bearable on OpenStackHart Hoover
 
Deploying a Chef Server
Deploying a Chef ServerDeploying a Chef Server
Deploying a Chef ServerHart Hoover
 
Rapid Chef Development with Berkshelf, Test-Kitchen and Foodcritic
Rapid Chef Development with Berkshelf, Test-Kitchen and FoodcriticRapid Chef Development with Berkshelf, Test-Kitchen and Foodcritic
Rapid Chef Development with Berkshelf, Test-Kitchen and FoodcriticHart Hoover
 
"Unlocked: The Hybrid Cloud" Business Track
"Unlocked: The Hybrid Cloud" Business Track"Unlocked: The Hybrid Cloud" Business Track
"Unlocked: The Hybrid Cloud" Business TrackHart Hoover
 
Isolated Networks in the Cloud
Isolated Networks in the CloudIsolated Networks in the Cloud
Isolated Networks in the CloudHart Hoover
 
Why Open Matters
Why Open MattersWhy Open Matters
Why Open MattersHart Hoover
 

More from Hart Hoover (11)

CI/CD with Kubernetes
CI/CD with KubernetesCI/CD with Kubernetes
CI/CD with Kubernetes
 
CI/CD with Docker on AWS
CI/CD with Docker on AWSCI/CD with Docker on AWS
CI/CD with Docker on AWS
 
Ignite Talk: "Building a DevOps Community" / DevOps Days Austin 2015
Ignite Talk: "Building a DevOps Community" / DevOps Days Austin 2015Ignite Talk: "Building a DevOps Community" / DevOps Days Austin 2015
Ignite Talk: "Building a DevOps Community" / DevOps Days Austin 2015
 
San Antonio Chef Users Meetup, Jun 2014 - Chef Metal
San Antonio Chef Users Meetup, Jun 2014 - Chef MetalSan Antonio Chef Users Meetup, Jun 2014 - Chef Metal
San Antonio Chef Users Meetup, Jun 2014 - Chef Metal
 
Making TDD [Somewhat] Bearable on OpenStack
Making TDD [Somewhat] Bearable on OpenStackMaking TDD [Somewhat] Bearable on OpenStack
Making TDD [Somewhat] Bearable on OpenStack
 
Deploying a Chef Server
Deploying a Chef ServerDeploying a Chef Server
Deploying a Chef Server
 
Rapid Chef Development with Berkshelf, Test-Kitchen and Foodcritic
Rapid Chef Development with Berkshelf, Test-Kitchen and FoodcriticRapid Chef Development with Berkshelf, Test-Kitchen and Foodcritic
Rapid Chef Development with Berkshelf, Test-Kitchen and Foodcritic
 
Vagrant Intro
Vagrant IntroVagrant Intro
Vagrant Intro
 
"Unlocked: The Hybrid Cloud" Business Track
"Unlocked: The Hybrid Cloud" Business Track"Unlocked: The Hybrid Cloud" Business Track
"Unlocked: The Hybrid Cloud" Business Track
 
Isolated Networks in the Cloud
Isolated Networks in the CloudIsolated Networks in the Cloud
Isolated Networks in the Cloud
 
Why Open Matters
Why Open MattersWhy Open Matters
Why Open Matters
 

Recently uploaded

TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 

Recently uploaded (20)

TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 

San Antonio DevOps: Fluentd