SlideShare une entreprise Scribd logo
1  sur  28
Télécharger pour lire hors ligne
Cool and easy way to do
logging and monitoring at EEA.
How to track Plone with TraceView
and GrayLog using Docker
Plone Conference 2015 - Bucarestluca.pisani@abstract.it /
Who am I?
I work with Abstract since 2008,
implementing web solutions with Plone and
other Python frameworks.
Since July I'm working on Plone sites of the
European Environment Agency (EEA) in a
collaborative project between Abstract and
Eau de Web
Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
Infrastructure - www.eea.europa.eu
● 2 x frontends for high availability
on each frontend
○ Apache
○ Varnish
○ Memcached
● 5 x backends
on each backend
○ 6x RelStorage clients
○ 1x Zope asyns client
● PostgreSQL cluster
○ Cloud - OpenStack
○ 1 x DB master
○ 2 x DB replicas
Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
● ~ 30k page views per day
● average: 30 editors per day
● average: 10 simultaneous
editors
Solution
Monitoring
● TraceView
● eea.controlpanel
Logging
● https://github.com/eea/eea.docker.graylog2
○ Graylog
● https://github.com/eea/eea.docker.logcentral
● https://github.com/eea/eea.graylogger
Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
TraceView provides code-level performance monitoring for web
applications, as well as real user monitoring (RUM).
Is deployed by
Important features
● full stack monitoring
hardware level, db level, backend/application level and frontend/webserver level
● spend very small ammount of time to identify bottle-necks
● quick audits/overviews
Monitoring -
Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
Monitoring - collective.traceview
Traceview times the full request from the browser through frontend servers to
application servers.
collective.traceview gives you insight into Zope/Plone internals and adds these
layers to Traceview:
● Zope HTTP Server
● Zope publisher
● ZODB
● Portal Transforms
● Outbound calls to e.g. webservices
● Portal Catalog searches
● Chameleon ZPT engine
It also adds tags to the HTML header and footer to instrument Traceview Real User
Monitoring (RUM), so you'll get metrics about user network connectivity and how long
time your site takes to render inside the browsers of the real users.
Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
Monitoring -
Cool and easy way to do logging and monitoring at EEA.Luca Pisani luca.pisani@abstract.it /
Monitoring -
Cool and easy way to do logging and monitoring at EEA.Luca Pisani luca.pisani@abstract.it /
Monitoring -
Cool and easy way to do logging and monitoring at EEA.Luca Pisani luca.pisani@abstract.it /
Monitoring -
Cool and easy way to do logging and monitoring at EEA.Luca Pisani luca.pisani@abstract.it /
Monitoring - eea.controlpanel
● quick overview of logged in users and their activity
○ who is active, not all users with a valid cookied, just real active users in that instant
Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
https://github.com/collective/eea.controlpanel
Monitoring - eea.controlpanel
● quick overview of logged in users and their activity
○ database activity (zmi undo tab) and logged in users in the same screen
Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
https://github.com/collective/eea.controlpanel
Monitoring - eea.controlpanel
● auto-refresh
● data is saved/kept via a python logger (very simple)
● safe portal upgrades
quickly check who is really online/active and if he is actually doing something
● verify unusual logged-in user activity
Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
https://github.com/collective/eea.controlpanel
Solution
Monitoring
● TraceView
● eea.controlpanel
Logging
● https://github.com/eea/eea.docker.graylog2
○ Graylog
● https://github.com/eea/eea.docker.logcentral
● https://github.com/eea/eea.graylogger
Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
Logging -
Graylog is a fully integrated open source log
management platform for collecting,
indexing, and analyzing both structured and
unstructured data from almost any source.
Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
● Open source
● Unified platform for
centralized logging
management
● Multi-tier architecture
enables scale-out of
ingestion, processing,
and storage
separately
● Pluggable architecture
and REST API for
runtime extensibility
Logging -
Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
Any data you want
The Graylog Collector can forward data from any
log source. Graylog also supports flexible input
types including syslog, plaintext, and GELF, a
Graylog format that lets you pre-structure and
normalize messages before sending.
Parse unstructured data
Graylog “extractors” and Grok patterns help
identify valuable information contained in
log data.
Logging -
Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
Real-time processing
Graylog “streams” apply rules in real time to
find specific message conditions or to
categorize data by software type, application
stack, location, or any other attribute that
makes finding answers faster and easier.
Dashboards and alerting
Any analysis or search result can be added as a
widget to dashboards. Keep all your important data
and trends in one place.
Alerts are highly configurable and can notify you
when specific conditions or events occur.
Logging - Installing
Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
Graylog can be installed in many different ways
● Virtual Appliance
Production ready virtual appliances as OVA images (VMware,
VirtualBox) for OpenStack, Amazon EC2, and Docker.
● DEB and RPM packages
● Chef, Puppet, Ansible, Vagrant
● Manual Installation
use
Logging - concept
Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
Docker is an awesome tool we can use
to deploy production systems.
The Dockerfile is a sort of installation
'recipe' that can be used to initialize a
system environment.
A Docker container is a fresh Linux
environment that bootstraps from a
host systems Linux kernel - this gives us
a lot of the benefits of the VM but
without the slow execution and bulk
often associated with VMs.
Logging - concept
Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
To understand Docker, you need to know about three components:
● Docker images.
● Docker registries.
● Docker containers.
Docker images is a read-only template. For example, an image could contain an
Ubuntu operating system with Apache and your web application installed.
Docker registries hold images. These are public or private stores from which you
upload or download images.
Docker containers are similar to a directory. A Docker container holds everything
that is needed for an application to run.
Logging - concept
Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
Why use Docker?
● Faster delivery of applications
Docker is perfect for helping you with the development lifecycle.
● Deploying and scaling more easily
Docker's portability and lightweight nature also make dynamically
managing workloads easy. You can use Docker to quickly scale up or
tear down applications and services.
Logging - eea.docker.graylog2
Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
All-in-one, ready to run Graylog2 Docker image.
Dockerfile
Docker image
everything already setup
Logging - eea.graylogger
Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
Zope/Plone plugin to send log to Graylog.
Logging - eea.graylogger
Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
To install
https://github.com/eea/eea.graylogger/blob/master/buildouts/plone4/buildout.cfg
How it works
Based on graypy sends messages to Graylog in GELF (Graylog Extended Log Format).
It can sends messages using AMQP (Advanced Message Queuing Protocol) with
RabbitMQ.
Messages sends via UDP protocol
Logging - eea.docker.logcentral
Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
docker-compose
Compose is a tool for defining and running multi-container
applications with Docker.
Features
● UDP and TCP
● LDAP integration
● GELF / RabbitMQ / Syslog
● easy testing/demos: https://github.com/eea/eea.
docker.logcentral/tree/master/demo
● works with any app not only Plone, it’s a generic
solution for logging
Questions
Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
Thanks
Luca Pisani
luca.pisani@abstract.it
linkedin.com/in/lucapisani
github.com/jslucas
Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
Cool and easy way to do logging and monitoring at EEA.

Contenu connexe

Dernier

Uncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac FolorunsoUncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac Folorunso
Kayode Fayemi
 
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
Sheetaleventcompany
 

Dernier (20)

Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night EnjoyCall Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
 
ICT role in 21st century education and it's challenges.pdf
ICT role in 21st century education and it's challenges.pdfICT role in 21st century education and it's challenges.pdf
ICT role in 21st century education and it's challenges.pdf
 
ANCHORING SCRIPT FOR A CULTURAL EVENT.docx
ANCHORING SCRIPT FOR A CULTURAL EVENT.docxANCHORING SCRIPT FOR A CULTURAL EVENT.docx
ANCHORING SCRIPT FOR A CULTURAL EVENT.docx
 
SaaStr Workshop Wednesday w/ Lucas Price, Yardstick
SaaStr Workshop Wednesday w/ Lucas Price, YardstickSaaStr Workshop Wednesday w/ Lucas Price, Yardstick
SaaStr Workshop Wednesday w/ Lucas Price, Yardstick
 
Introduction to Prompt Engineering (Focusing on ChatGPT)
Introduction to Prompt Engineering (Focusing on ChatGPT)Introduction to Prompt Engineering (Focusing on ChatGPT)
Introduction to Prompt Engineering (Focusing on ChatGPT)
 
BDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort Service
 
lONG QUESTION ANSWER PAKISTAN STUDIES10.
lONG QUESTION ANSWER PAKISTAN STUDIES10.lONG QUESTION ANSWER PAKISTAN STUDIES10.
lONG QUESTION ANSWER PAKISTAN STUDIES10.
 
Dreaming Marissa Sánchez Music Video Treatment
Dreaming Marissa Sánchez Music Video TreatmentDreaming Marissa Sánchez Music Video Treatment
Dreaming Marissa Sánchez Music Video Treatment
 
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdfThe workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
 
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdfAWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
 
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara ServicesVVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
 
Presentation on Engagement in Book Clubs
Presentation on Engagement in Book ClubsPresentation on Engagement in Book Clubs
Presentation on Engagement in Book Clubs
 
Uncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac FolorunsoUncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac Folorunso
 
My Presentation "In Your Hands" by Halle Bailey
My Presentation "In Your Hands" by Halle BaileyMy Presentation "In Your Hands" by Halle Bailey
My Presentation "In Your Hands" by Halle Bailey
 
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort Service
 
Air breathing and respiratory adaptations in diver animals
Air breathing and respiratory adaptations in diver animalsAir breathing and respiratory adaptations in diver animals
Air breathing and respiratory adaptations in diver animals
 
Report Writing Webinar Training
Report Writing Webinar TrainingReport Writing Webinar Training
Report Writing Webinar Training
 
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
 
Dreaming Music Video Treatment _ Project & Portfolio III
Dreaming Music Video Treatment _ Project & Portfolio IIIDreaming Music Video Treatment _ Project & Portfolio III
Dreaming Music Video Treatment _ Project & Portfolio III
 
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptxMohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptx
 

En vedette

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

En vedette (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

Cool and easy way to do logging and monitoring at EEA.

  • 1. Cool and easy way to do logging and monitoring at EEA. How to track Plone with TraceView and GrayLog using Docker Plone Conference 2015 - Bucarestluca.pisani@abstract.it /
  • 2. Who am I? I work with Abstract since 2008, implementing web solutions with Plone and other Python frameworks. Since July I'm working on Plone sites of the European Environment Agency (EEA) in a collaborative project between Abstract and Eau de Web Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
  • 3. Infrastructure - www.eea.europa.eu ● 2 x frontends for high availability on each frontend ○ Apache ○ Varnish ○ Memcached ● 5 x backends on each backend ○ 6x RelStorage clients ○ 1x Zope asyns client ● PostgreSQL cluster ○ Cloud - OpenStack ○ 1 x DB master ○ 2 x DB replicas Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it / ● ~ 30k page views per day ● average: 30 editors per day ● average: 10 simultaneous editors
  • 4. Solution Monitoring ● TraceView ● eea.controlpanel Logging ● https://github.com/eea/eea.docker.graylog2 ○ Graylog ● https://github.com/eea/eea.docker.logcentral ● https://github.com/eea/eea.graylogger Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
  • 5. TraceView provides code-level performance monitoring for web applications, as well as real user monitoring (RUM). Is deployed by Important features ● full stack monitoring hardware level, db level, backend/application level and frontend/webserver level ● spend very small ammount of time to identify bottle-necks ● quick audits/overviews Monitoring - Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
  • 6. Monitoring - collective.traceview Traceview times the full request from the browser through frontend servers to application servers. collective.traceview gives you insight into Zope/Plone internals and adds these layers to Traceview: ● Zope HTTP Server ● Zope publisher ● ZODB ● Portal Transforms ● Outbound calls to e.g. webservices ● Portal Catalog searches ● Chameleon ZPT engine It also adds tags to the HTML header and footer to instrument Traceview Real User Monitoring (RUM), so you'll get metrics about user network connectivity and how long time your site takes to render inside the browsers of the real users. Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
  • 7. Monitoring - Cool and easy way to do logging and monitoring at EEA.Luca Pisani luca.pisani@abstract.it /
  • 8. Monitoring - Cool and easy way to do logging and monitoring at EEA.Luca Pisani luca.pisani@abstract.it /
  • 9. Monitoring - Cool and easy way to do logging and monitoring at EEA.Luca Pisani luca.pisani@abstract.it /
  • 10. Monitoring - Cool and easy way to do logging and monitoring at EEA.Luca Pisani luca.pisani@abstract.it /
  • 11. Monitoring - eea.controlpanel ● quick overview of logged in users and their activity ○ who is active, not all users with a valid cookied, just real active users in that instant Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it / https://github.com/collective/eea.controlpanel
  • 12. Monitoring - eea.controlpanel ● quick overview of logged in users and their activity ○ database activity (zmi undo tab) and logged in users in the same screen Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it / https://github.com/collective/eea.controlpanel
  • 13. Monitoring - eea.controlpanel ● auto-refresh ● data is saved/kept via a python logger (very simple) ● safe portal upgrades quickly check who is really online/active and if he is actually doing something ● verify unusual logged-in user activity Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it / https://github.com/collective/eea.controlpanel
  • 14. Solution Monitoring ● TraceView ● eea.controlpanel Logging ● https://github.com/eea/eea.docker.graylog2 ○ Graylog ● https://github.com/eea/eea.docker.logcentral ● https://github.com/eea/eea.graylogger Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
  • 15. Logging - Graylog is a fully integrated open source log management platform for collecting, indexing, and analyzing both structured and unstructured data from almost any source. Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it / ● Open source ● Unified platform for centralized logging management ● Multi-tier architecture enables scale-out of ingestion, processing, and storage separately ● Pluggable architecture and REST API for runtime extensibility
  • 16. Logging - Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it / Any data you want The Graylog Collector can forward data from any log source. Graylog also supports flexible input types including syslog, plaintext, and GELF, a Graylog format that lets you pre-structure and normalize messages before sending. Parse unstructured data Graylog “extractors” and Grok patterns help identify valuable information contained in log data.
  • 17. Logging - Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it / Real-time processing Graylog “streams” apply rules in real time to find specific message conditions or to categorize data by software type, application stack, location, or any other attribute that makes finding answers faster and easier. Dashboards and alerting Any analysis or search result can be added as a widget to dashboards. Keep all your important data and trends in one place. Alerts are highly configurable and can notify you when specific conditions or events occur.
  • 18. Logging - Installing Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it / Graylog can be installed in many different ways ● Virtual Appliance Production ready virtual appliances as OVA images (VMware, VirtualBox) for OpenStack, Amazon EC2, and Docker. ● DEB and RPM packages ● Chef, Puppet, Ansible, Vagrant ● Manual Installation use
  • 19. Logging - concept Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it / Docker is an awesome tool we can use to deploy production systems. The Dockerfile is a sort of installation 'recipe' that can be used to initialize a system environment. A Docker container is a fresh Linux environment that bootstraps from a host systems Linux kernel - this gives us a lot of the benefits of the VM but without the slow execution and bulk often associated with VMs.
  • 20. Logging - concept Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it / To understand Docker, you need to know about three components: ● Docker images. ● Docker registries. ● Docker containers. Docker images is a read-only template. For example, an image could contain an Ubuntu operating system with Apache and your web application installed. Docker registries hold images. These are public or private stores from which you upload or download images. Docker containers are similar to a directory. A Docker container holds everything that is needed for an application to run.
  • 21. Logging - concept Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it / Why use Docker? ● Faster delivery of applications Docker is perfect for helping you with the development lifecycle. ● Deploying and scaling more easily Docker's portability and lightweight nature also make dynamically managing workloads easy. You can use Docker to quickly scale up or tear down applications and services.
  • 22. Logging - eea.docker.graylog2 Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it / All-in-one, ready to run Graylog2 Docker image. Dockerfile Docker image everything already setup
  • 23. Logging - eea.graylogger Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it / Zope/Plone plugin to send log to Graylog.
  • 24. Logging - eea.graylogger Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it / To install https://github.com/eea/eea.graylogger/blob/master/buildouts/plone4/buildout.cfg How it works Based on graypy sends messages to Graylog in GELF (Graylog Extended Log Format). It can sends messages using AMQP (Advanced Message Queuing Protocol) with RabbitMQ. Messages sends via UDP protocol
  • 25. Logging - eea.docker.logcentral Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it / docker-compose Compose is a tool for defining and running multi-container applications with Docker. Features ● UDP and TCP ● LDAP integration ● GELF / RabbitMQ / Syslog ● easy testing/demos: https://github.com/eea/eea. docker.logcentral/tree/master/demo ● works with any app not only Plone, it’s a generic solution for logging
  • 26. Questions Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /
  • 27. Thanks Luca Pisani luca.pisani@abstract.it linkedin.com/in/lucapisani github.com/jslucas Cool and easy way to do logging and monitoring at EEA.Luca Pisani - luca.pisani@abstract.it /