SlideShare a Scribd company logo
1 of 40
Download to read offline
July 31st, 2019: Log Aggregation and ELK on Anypoint
Platform
Dallas Meetup
All contents © MuleSoft Inc.
Agenda
2
• Introductions
• Log Aggregation and ELK on Anypoint Platform
• What’s next
• Networking time
All contents © MuleSoft Inc.
Introductions
3
• About the organizer:
– Ruman Khan
– Miguel Martinez
• About the sponsor:
– AVIO Consulting
A SHOW OF HANDS:
Who is new to this MeetUp?
by Adam DesJardin (AVIO Consulting)
Log Aggregation and ELK
on Anypoint Platform
Structured Logging
• Writing log messages in a defined format so data is both human readable
and machine processable
Terminology
AVIOCONSULTING.COM
Log Aggregation
• Collecting logs from multiple sources into a single system for storage,
searching and reporting
Log Correlation
• Being able to trace all log messages from a single execution based on some
correlation value
Distributed Tracing
• Tracing logs and execution across multiple distributed systems, such as
microservices, to see a full end to end view of the execution
Terminology
AVIOCONSULTING.COM
APM - Application Performance Management
• Monitoring and management of application performance, providing a
detailed view into real time execution performance
Why use structured logging?
• Produce logs that are human and machine readable and in a standard format
• Enforce standard data to be logged in all scenarios for better operations
• Parse logs to provide a rich data structure instead of a string message
• Build reports and dashboards around log data such as errors, exception cases
and business events that occur
Structured Logging
AVIOCONSULTING.COM
Mulesoft JSON Logger
• Open Source by Mulesoft Professional Services
• Published into your private exchange
• Provides a base set of recommended fields as well as a message field
• Direct integration to Anypoint MQ
Structured Logging
AVIOCONSULTING.COM
https://github.com/mulesoft-consulting/json-logger
AVIO Custom Logger
• Open Source by AVIO Consulting
• Published into your private exchange
• Provides a base set of recommended fields as well as a message field
• Provides configurable logger categories for each message
• Provides key/value pair data element for application specific data
• Uses Log4j MapMessage for flexible formatting
• Uses Log4j JSONLayout for conversion to JSON, other layouts work as well
Structured Logging
AVIOCONSULTING.COM
https://github.com/avioconsulting/mule-custom-logger
Structured Logging
AVIOCONSULTING.COM
https://github.com/avioconsulting/mule-custom-logger
Cloudhub Logging
• OOTB Logging, 100mb or 30 days per application
• Available in Anypoint Console or via API
• Search within a single application only
Anypoint Logging
AVIOCONSULTING.COM
Anypoint Monitoring Logging
• Log aggregation across all Mule applications in all environments
• Provides predefined filters such as environment and application
• Search across multiple applications using simple query language
• 200gb per Production core, additional can be purchased
• Requires Titanium support subscription
Anypoint Logging
AVIOCONSULTING.COM
Anypoint Logging
AVIOCONSULTING.COM
Elasticsearch
• Distribute full-text search engine based on Lucene
• Search across all indexed data using power query language and SQL
• Scalable storage backend defined by your needs
• Can be hosted on-premise, on a cloud provider or fully managed on
Elastic.co
• Many advanced features available such as infrastructure metrics, APM and
Machine Learning
Elastic Stack
AVIOCONSULTING.COM
Logstash
• Server-side data processing pipeline
• Ingests data from many sources, transforms and enriches it, and stores it in
your configured data store (Elasticsearch)
• Many input sources supported such as Kafka, S3, SQS, http, beats, etc...
Elastic Stack
AVIOCONSULTING.COM
Filebeats
• Ships file based logs to Elasticsearch or Logstash
• Understands many common log formats (syslog, apache, nginx)
Kibana
• Web based UI on top of Elasticsearch
• Provides search, management, visualizations and dashboards
• Can visualize logs, time series data, location data, etc..
Elastic Stack
AVIOCONSULTING.COM
Elastic Stack
AVIOCONSULTING.COM
Advantages
• Run and keep your data anywhere you choose
• Collect more than just Mule logs, including microservice logs (Java, .NET,
node.js) and service metrics
• Define alerts on log events using Watchers
• Build custom dashboards and reports that can be shared with other users
• Flexible archiving options and destinations such as S3 for low cost storage
• Leverage advanced features such as Machine Learning
Elastic Stack
AVIOCONSULTING.COM
Elastic Stack with Mulesoft On Premise
AVIOCONSULTING.COM
Elastic Stack with Mulesoft On Premise
AVIOCONSULTING.COM
Filebeats
• Run on each server with a Mule runtime
• Collects Mule runtime and application specific logs
• Adds cloud provided metadata if applicable
• These are shipped directly to logstash
Elastic Stack with Mulesoft On Premise
AVIOCONSULTING.COM
Logstash
• Accepts logs from filebeats using the beats input
• Parses and transforms the messages as needed
• Override and set standard elastic fields such as message and timestamp
Elastic Stack with Mulesoft On Premise
AVIOCONSULTING.COM
Elasticsearch
• All logs are stored into a single index
• Depending on volume the index can be daily or monthly
• Single index allows searching across apps
• Indexes per environment and separate permissions for who can view them
Elastic Stack with Mulesoft On Premise
AVIOCONSULTING.COM
Kibana
• Users can then search logs and build dashboards/reports
• Watchers can be configured through the Kibana UI to send alerts via email,
Slack or other channels
Elastic Stack with Mulesoft in Cloudhub
AVIOCONSULTING.COM
Elastic Stack with Mulesoft in Cloudhub
AVIOCONSULTING.COM
Cloudhub Mule Apps
• A support ticket is required to enable custom logging on Cloudhub
• Standard Cloudhub logging can still be kept with the correct log4j2.xml
• Any log4j2 appender can be used to publish messages to other data stores
Elastic Stack with Mulesoft in Cloudhub
AVIOCONSULTING.COM
Log4j Appenders
• Appenders are written in Java and allow messages to be sent anywhere
• SQS appender supports multiple threads and batching for high throughput
https://github.com/avioconsulting/log4j2-sqs-appender
Elastic Stack with Mulesoft in Cloudhub
AVIOCONSULTING.COM
Amazon SQS
• Can exist in the same region as the Cloudhub applications for low latency
• Almost unlimited throughput based on number of threads and latency
• Any other queuing system can be used, but must be highly available
Elastic Stack with Mulesoft in Cloudhub
AVIOCONSULTING.COM
Logstash
• Accepts logs from filebeats using the SQS input
• One pipeline per SQS Queue is needed, usually one per environment
• Parses and transforms the messages as needed
• Override and set standard elastic fields such as message and timestamp
Elastic Stack with Mulesoft in Cloudhub
AVIOCONSULTING.COM
Elasticsearch
• All logs are stored into a single index
• Depending on volume the index can be daily or monthly
• Single index allows searching across apps
• Indexes per environment and separate permissions for who can view them
Elastic Stack with Mulesoft in Cloudhub
AVIOCONSULTING.COM
Kibana
• Users can then search logs and build dashboards/reports
• Watchers can be configured through the Kibana UI to send alerts via email,
Slack or other channels
• Cloudhub and On-premise follow very similar patterns
• Differences should only be in how the logs get from Mule applications to
logstash, and minimal difference in how they are processed in logstash
• These logs can be combined into a single Elastic index, allowing searching
across apps in a hybrid environment
• API Analytics can also be stored in Elastic for a single view into all data
Elastic Stack with Mulesoft
AVIOCONSULTING.COM
Elastic Stack with Mulesoft
AVIOCONSULTING.COM
Elastic Stack with Mulesoft
AVIOCONSULTING.COM
Elastic Stack with Mulesoft
AVIOCONSULTING.COM
• Once all logs are being aggregated into a single index distributed tracing
becomes much easier
• The remaining challenge is passing a tracing id through all API’s and flows
that can be used to correlate logs
• This can be custom or follow the OpenTracing standard
• This will need to be based in and out as an HTTP header on all API calls
• Other technologies may be implemented differently such as an SQS message
attribute or JMS property
Distributed Tracing
AVIOCONSULTING.COM
• Elastic also provides APM capabilities beyond just distributed tracing
• Leverages Mule runtime notification events to capture tracing information
for each flow and processor automatically
• Agent can also collect metrics such as JVM Heap usage, CPU, etc...
• An open source agent is in development for Mulesoft
• Works with Mule 3 but Mule 4 isn’t supported yet, but is being worked on
APM
AVIOCONSULTING.COM
https://www.elastic.co/blog/observability-of-mulesoft-using-elastic-apm-to-monitor-mule-flows
https://github.com/michaelhyatt/elastic-apm-mule3-agent
APM
AVIOCONSULTING.COM
Resources
AVIOCONSULTING.COM
https://www.elastic.co/blog/observability-of-mulesoft-using-elastic-apm-to-monitor-mule-flows
https://github.com/michaelhyatt/elastic-apm-mule3-agent
https://github.com/avioconsulting/log4j2-sqs-appender
https://github.com/avioconsulting/mule-custom-logger
https://github.com/mulesoft-consulting/json-logger
https://docs.mulesoft.com/runtime-manager/custom-log-appender
All contents © MuleSoft Inc.
What’s next
39
• Share:
– Tweet your pictures with the hashtag #MuleMeetup
– Invite your network to join: https://meetups.mulesoft.com/dallas/
• Feedback:
– Contact your organizer Ruman Khan to suggest topics
– Contact MuleSoft at meetup@mulesoft.com for ways to improve the program
Dallas Mulesoft Meetup - Log Aggregation and Elastic Stack on Anypoint Platform

More Related Content

What's hot

MLops workshop AWS
MLops workshop AWSMLops workshop AWS
MLops workshop AWSGili Nachum
 
Build an LLM-powered application using LangChain.pdf
Build an LLM-powered application using LangChain.pdfBuild an LLM-powered application using LangChain.pdf
Build an LLM-powered application using LangChain.pdfStephenAmell4
 
Intro to Kubernetes & GitOps Workshop
Intro to Kubernetes & GitOps WorkshopIntro to Kubernetes & GitOps Workshop
Intro to Kubernetes & GitOps WorkshopWeaveworks
 
Introduction to Elasticsearch
Introduction to ElasticsearchIntroduction to Elasticsearch
Introduction to ElasticsearchIsmaeel Enjreny
 
Build CICD Pipeline for Container Presentation Slides
Build CICD Pipeline for Container Presentation SlidesBuild CICD Pipeline for Container Presentation Slides
Build CICD Pipeline for Container Presentation SlidesAmazon Web Services
 
Making Testing Easy w GitHub Copilot.pdf
Making Testing Easy w GitHub Copilot.pdfMaking Testing Easy w GitHub Copilot.pdf
Making Testing Easy w GitHub Copilot.pdfApplitools
 
GENERATIVE AI, THE FUTURE OF PRODUCTIVITY
GENERATIVE AI, THE FUTURE OF PRODUCTIVITYGENERATIVE AI, THE FUTURE OF PRODUCTIVITY
GENERATIVE AI, THE FUTURE OF PRODUCTIVITYAndre Muscat
 
The Developer Experience
The Developer ExperienceThe Developer Experience
The Developer ExperiencePamela Fox
 
Microservices: The Right Way
Microservices: The Right WayMicroservices: The Right Way
Microservices: The Right WayDaniel Woods
 
Embarking on MuleSoft Automation Journey via RPA, Composer and Flex Gateway
Embarking on MuleSoft Automation Journey via RPA, Composer and Flex GatewayEmbarking on MuleSoft Automation Journey via RPA, Composer and Flex Gateway
Embarking on MuleSoft Automation Journey via RPA, Composer and Flex GatewayEva Mave Ng
 
Software development in the modern age
Software development in the modern ageSoftware development in the modern age
Software development in the modern ageRoy Wasse
 
Backstage at CNCF Madison.pptx
Backstage at CNCF Madison.pptxBackstage at CNCF Madison.pptx
Backstage at CNCF Madison.pptxBrandenTimm1
 
Large Language Models - Chat AI.pdf
Large Language Models - Chat AI.pdfLarge Language Models - Chat AI.pdf
Large Language Models - Chat AI.pdfDavid Rostcheck
 
Introduction to GitHub Copilot
Introduction to GitHub CopilotIntroduction to GitHub Copilot
Introduction to GitHub CopilotAll Things Open
 

What's hot (20)

MLops workshop AWS
MLops workshop AWSMLops workshop AWS
MLops workshop AWS
 
Build an LLM-powered application using LangChain.pdf
Build an LLM-powered application using LangChain.pdfBuild an LLM-powered application using LangChain.pdf
Build an LLM-powered application using LangChain.pdf
 
Elasticsearch
ElasticsearchElasticsearch
Elasticsearch
 
Intro to Kubernetes & GitOps Workshop
Intro to Kubernetes & GitOps WorkshopIntro to Kubernetes & GitOps Workshop
Intro to Kubernetes & GitOps Workshop
 
Github copilot
Github copilotGithub copilot
Github copilot
 
Introduction to Elasticsearch
Introduction to ElasticsearchIntroduction to Elasticsearch
Introduction to Elasticsearch
 
Build CICD Pipeline for Container Presentation Slides
Build CICD Pipeline for Container Presentation SlidesBuild CICD Pipeline for Container Presentation Slides
Build CICD Pipeline for Container Presentation Slides
 
OpenAI-Copilot-ChatGPT.pptx
OpenAI-Copilot-ChatGPT.pptxOpenAI-Copilot-ChatGPT.pptx
OpenAI-Copilot-ChatGPT.pptx
 
Making Testing Easy w GitHub Copilot.pdf
Making Testing Easy w GitHub Copilot.pdfMaking Testing Easy w GitHub Copilot.pdf
Making Testing Easy w GitHub Copilot.pdf
 
GENERATIVE AI, THE FUTURE OF PRODUCTIVITY
GENERATIVE AI, THE FUTURE OF PRODUCTIVITYGENERATIVE AI, THE FUTURE OF PRODUCTIVITY
GENERATIVE AI, THE FUTURE OF PRODUCTIVITY
 
The Developer Experience
The Developer ExperienceThe Developer Experience
The Developer Experience
 
Microservices: The Right Way
Microservices: The Right WayMicroservices: The Right Way
Microservices: The Right Way
 
Migrating To GitHub
Migrating To GitHub  Migrating To GitHub
Migrating To GitHub
 
Embarking on MuleSoft Automation Journey via RPA, Composer and Flex Gateway
Embarking on MuleSoft Automation Journey via RPA, Composer and Flex GatewayEmbarking on MuleSoft Automation Journey via RPA, Composer and Flex Gateway
Embarking on MuleSoft Automation Journey via RPA, Composer and Flex Gateway
 
Software development in the modern age
Software development in the modern ageSoftware development in the modern age
Software development in the modern age
 
Backstage at CNCF Madison.pptx
Backstage at CNCF Madison.pptxBackstage at CNCF Madison.pptx
Backstage at CNCF Madison.pptx
 
Large Language Models - Chat AI.pdf
Large Language Models - Chat AI.pdfLarge Language Models - Chat AI.pdf
Large Language Models - Chat AI.pdf
 
Apache airflow
Apache airflowApache airflow
Apache airflow
 
Azure DevOps
Azure DevOpsAzure DevOps
Azure DevOps
 
Introduction to GitHub Copilot
Introduction to GitHub CopilotIntroduction to GitHub Copilot
Introduction to GitHub Copilot
 

Similar to Dallas Mulesoft Meetup - Log Aggregation and Elastic Stack on Anypoint Platform

Streaming Processing with a Distributed Commit Log
Streaming Processing with a Distributed Commit LogStreaming Processing with a Distributed Commit Log
Streaming Processing with a Distributed Commit LogJoe Stein
 
The Oracle Application Container Cloud as the Microservices Platform (APAC OU...
The Oracle Application Container Cloud as the Microservices Platform (APAC OU...The Oracle Application Container Cloud as the Microservices Platform (APAC OU...
The Oracle Application Container Cloud as the Microservices Platform (APAC OU...Lucas Jellema
 
PaaS Design & Architecture: A Deep Dive into Apache Stratos
PaaS Design & Architecture: A Deep Dive into Apache StratosPaaS Design & Architecture: A Deep Dive into Apache Stratos
PaaS Design & Architecture: A Deep Dive into Apache StratosWSO2
 
Event Bus as Backbone for Decoupled Microservice Choreography (Oracle Code, A...
Event Bus as Backbone for Decoupled Microservice Choreography (Oracle Code, A...Event Bus as Backbone for Decoupled Microservice Choreography (Oracle Code, A...
Event Bus as Backbone for Decoupled Microservice Choreography (Oracle Code, A...Lucas Jellema
 
IBM MQ - Comparing Distributed and z/OS platforms
IBM MQ - Comparing Distributed and z/OS platformsIBM MQ - Comparing Distributed and z/OS platforms
IBM MQ - Comparing Distributed and z/OS platformsMarkTaylorIBM
 
WSO2Con Asia 2014 - Essential Elements of an Enterprise PaaS
WSO2Con Asia 2014 - Essential Elements of an Enterprise PaaSWSO2Con Asia 2014 - Essential Elements of an Enterprise PaaS
WSO2Con Asia 2014 - Essential Elements of an Enterprise PaaSWSO2
 
Essential Elements of an Enterprise PaaS
Essential Elements of an Enterprise PaaSEssential Elements of an Enterprise PaaS
Essential Elements of an Enterprise PaaSLakmal Warusawithana
 
IBM MQ - Comparing Distributed and z/OS platforms
IBM MQ - Comparing Distributed and z/OS platformsIBM MQ - Comparing Distributed and z/OS platforms
IBM MQ - Comparing Distributed and z/OS platformsMarkTaylorIBM
 
Kubernetes Infra 2.0
Kubernetes Infra 2.0Kubernetes Infra 2.0
Kubernetes Infra 2.0Deepak Sood
 
Centralized Logging System Using ELK Stack
Centralized Logging System Using ELK StackCentralized Logging System Using ELK Stack
Centralized Logging System Using ELK StackRohit Sharma
 
Event Bus as Backbone for Decoupled Microservice Choreography (JFall 2017)
Event Bus as Backbone for Decoupled Microservice Choreography (JFall 2017)Event Bus as Backbone for Decoupled Microservice Choreography (JFall 2017)
Event Bus as Backbone for Decoupled Microservice Choreography (JFall 2017)Lucas Jellema
 
Scenic City Summit (2021): Real-Time Streaming in any and all clouds, hybrid...
Scenic City Summit (2021):  Real-Time Streaming in any and all clouds, hybrid...Scenic City Summit (2021):  Real-Time Streaming in any and all clouds, hybrid...
Scenic City Summit (2021): Real-Time Streaming in any and all clouds, hybrid...Timothy Spann
 
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...ShapeBlue
 
From the Trenches: Effectively Scaling Your Cloud Infrastructure and Optimizi...
From the Trenches: Effectively Scaling Your Cloud Infrastructure and Optimizi...From the Trenches: Effectively Scaling Your Cloud Infrastructure and Optimizi...
From the Trenches: Effectively Scaling Your Cloud Infrastructure and Optimizi...Allan Mangune
 
Amazon aws big data demystified | Introduction to streaming and messaging flu...
Amazon aws big data demystified | Introduction to streaming and messaging flu...Amazon aws big data demystified | Introduction to streaming and messaging flu...
Amazon aws big data demystified | Introduction to streaming and messaging flu...Omid Vahdaty
 
Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018
Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018
Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018Amazon Web Services Korea
 
Big data conference europe real-time streaming in any and all clouds, hybri...
Big data conference europe   real-time streaming in any and all clouds, hybri...Big data conference europe   real-time streaming in any and all clouds, hybri...
Big data conference europe real-time streaming in any and all clouds, hybri...Timothy Spann
 
Apache Stratos (Incubating) is the Platform as a Service (PaaS) project from ...
Apache Stratos (Incubating) is the Platform as a Service (PaaS) project from ...Apache Stratos (Incubating) is the Platform as a Service (PaaS) project from ...
Apache Stratos (Incubating) is the Platform as a Service (PaaS) project from ...WSO2
 
IBM BP Session - Multiple CLoud Paks and Cloud Paks Foundational Services.pptx
IBM BP Session - Multiple CLoud Paks and Cloud Paks Foundational Services.pptxIBM BP Session - Multiple CLoud Paks and Cloud Paks Foundational Services.pptx
IBM BP Session - Multiple CLoud Paks and Cloud Paks Foundational Services.pptxGeorg Ember
 
Wso2 con 2014-us-talk-deep dive into apache stratos & private paas
Wso2 con 2014-us-talk-deep dive into apache stratos & private paasWso2 con 2014-us-talk-deep dive into apache stratos & private paas
Wso2 con 2014-us-talk-deep dive into apache stratos & private paasLakmal Warusawithana
 

Similar to Dallas Mulesoft Meetup - Log Aggregation and Elastic Stack on Anypoint Platform (20)

Streaming Processing with a Distributed Commit Log
Streaming Processing with a Distributed Commit LogStreaming Processing with a Distributed Commit Log
Streaming Processing with a Distributed Commit Log
 
The Oracle Application Container Cloud as the Microservices Platform (APAC OU...
The Oracle Application Container Cloud as the Microservices Platform (APAC OU...The Oracle Application Container Cloud as the Microservices Platform (APAC OU...
The Oracle Application Container Cloud as the Microservices Platform (APAC OU...
 
PaaS Design & Architecture: A Deep Dive into Apache Stratos
PaaS Design & Architecture: A Deep Dive into Apache StratosPaaS Design & Architecture: A Deep Dive into Apache Stratos
PaaS Design & Architecture: A Deep Dive into Apache Stratos
 
Event Bus as Backbone for Decoupled Microservice Choreography (Oracle Code, A...
Event Bus as Backbone for Decoupled Microservice Choreography (Oracle Code, A...Event Bus as Backbone for Decoupled Microservice Choreography (Oracle Code, A...
Event Bus as Backbone for Decoupled Microservice Choreography (Oracle Code, A...
 
IBM MQ - Comparing Distributed and z/OS platforms
IBM MQ - Comparing Distributed and z/OS platformsIBM MQ - Comparing Distributed and z/OS platforms
IBM MQ - Comparing Distributed and z/OS platforms
 
WSO2Con Asia 2014 - Essential Elements of an Enterprise PaaS
WSO2Con Asia 2014 - Essential Elements of an Enterprise PaaSWSO2Con Asia 2014 - Essential Elements of an Enterprise PaaS
WSO2Con Asia 2014 - Essential Elements of an Enterprise PaaS
 
Essential Elements of an Enterprise PaaS
Essential Elements of an Enterprise PaaSEssential Elements of an Enterprise PaaS
Essential Elements of an Enterprise PaaS
 
IBM MQ - Comparing Distributed and z/OS platforms
IBM MQ - Comparing Distributed and z/OS platformsIBM MQ - Comparing Distributed and z/OS platforms
IBM MQ - Comparing Distributed and z/OS platforms
 
Kubernetes Infra 2.0
Kubernetes Infra 2.0Kubernetes Infra 2.0
Kubernetes Infra 2.0
 
Centralized Logging System Using ELK Stack
Centralized Logging System Using ELK StackCentralized Logging System Using ELK Stack
Centralized Logging System Using ELK Stack
 
Event Bus as Backbone for Decoupled Microservice Choreography (JFall 2017)
Event Bus as Backbone for Decoupled Microservice Choreography (JFall 2017)Event Bus as Backbone for Decoupled Microservice Choreography (JFall 2017)
Event Bus as Backbone for Decoupled Microservice Choreography (JFall 2017)
 
Scenic City Summit (2021): Real-Time Streaming in any and all clouds, hybrid...
Scenic City Summit (2021):  Real-Time Streaming in any and all clouds, hybrid...Scenic City Summit (2021):  Real-Time Streaming in any and all clouds, hybrid...
Scenic City Summit (2021): Real-Time Streaming in any and all clouds, hybrid...
 
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...
 
From the Trenches: Effectively Scaling Your Cloud Infrastructure and Optimizi...
From the Trenches: Effectively Scaling Your Cloud Infrastructure and Optimizi...From the Trenches: Effectively Scaling Your Cloud Infrastructure and Optimizi...
From the Trenches: Effectively Scaling Your Cloud Infrastructure and Optimizi...
 
Amazon aws big data demystified | Introduction to streaming and messaging flu...
Amazon aws big data demystified | Introduction to streaming and messaging flu...Amazon aws big data demystified | Introduction to streaming and messaging flu...
Amazon aws big data demystified | Introduction to streaming and messaging flu...
 
Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018
Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018
Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018
 
Big data conference europe real-time streaming in any and all clouds, hybri...
Big data conference europe   real-time streaming in any and all clouds, hybri...Big data conference europe   real-time streaming in any and all clouds, hybri...
Big data conference europe real-time streaming in any and all clouds, hybri...
 
Apache Stratos (Incubating) is the Platform as a Service (PaaS) project from ...
Apache Stratos (Incubating) is the Platform as a Service (PaaS) project from ...Apache Stratos (Incubating) is the Platform as a Service (PaaS) project from ...
Apache Stratos (Incubating) is the Platform as a Service (PaaS) project from ...
 
IBM BP Session - Multiple CLoud Paks and Cloud Paks Foundational Services.pptx
IBM BP Session - Multiple CLoud Paks and Cloud Paks Foundational Services.pptxIBM BP Session - Multiple CLoud Paks and Cloud Paks Foundational Services.pptx
IBM BP Session - Multiple CLoud Paks and Cloud Paks Foundational Services.pptx
 
Wso2 con 2014-us-talk-deep dive into apache stratos & private paas
Wso2 con 2014-us-talk-deep dive into apache stratos & private paasWso2 con 2014-us-talk-deep dive into apache stratos & private paas
Wso2 con 2014-us-talk-deep dive into apache stratos & private paas
 

Recently uploaded

Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Andreas Granig
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsAhmed Mohamed
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfPower Karaoke
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfAlina Yurenko
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaHanief Utama
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based projectAnoyGreter
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样umasea
 
software engineering Chapter 5 System modeling.pptx
software engineering Chapter 5 System modeling.pptxsoftware engineering Chapter 5 System modeling.pptx
software engineering Chapter 5 System modeling.pptxnada99848
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 

Recently uploaded (20)

Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief Utama
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based project
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort ServiceHot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
 
software engineering Chapter 5 System modeling.pptx
software engineering Chapter 5 System modeling.pptxsoftware engineering Chapter 5 System modeling.pptx
software engineering Chapter 5 System modeling.pptx
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 

Dallas Mulesoft Meetup - Log Aggregation and Elastic Stack on Anypoint Platform

  • 1. July 31st, 2019: Log Aggregation and ELK on Anypoint Platform Dallas Meetup
  • 2. All contents © MuleSoft Inc. Agenda 2 • Introductions • Log Aggregation and ELK on Anypoint Platform • What’s next • Networking time
  • 3. All contents © MuleSoft Inc. Introductions 3 • About the organizer: – Ruman Khan – Miguel Martinez • About the sponsor: – AVIO Consulting A SHOW OF HANDS: Who is new to this MeetUp?
  • 4. by Adam DesJardin (AVIO Consulting) Log Aggregation and ELK on Anypoint Platform
  • 5. Structured Logging • Writing log messages in a defined format so data is both human readable and machine processable Terminology AVIOCONSULTING.COM Log Aggregation • Collecting logs from multiple sources into a single system for storage, searching and reporting Log Correlation • Being able to trace all log messages from a single execution based on some correlation value
  • 6. Distributed Tracing • Tracing logs and execution across multiple distributed systems, such as microservices, to see a full end to end view of the execution Terminology AVIOCONSULTING.COM APM - Application Performance Management • Monitoring and management of application performance, providing a detailed view into real time execution performance
  • 7. Why use structured logging? • Produce logs that are human and machine readable and in a standard format • Enforce standard data to be logged in all scenarios for better operations • Parse logs to provide a rich data structure instead of a string message • Build reports and dashboards around log data such as errors, exception cases and business events that occur Structured Logging AVIOCONSULTING.COM
  • 8. Mulesoft JSON Logger • Open Source by Mulesoft Professional Services • Published into your private exchange • Provides a base set of recommended fields as well as a message field • Direct integration to Anypoint MQ Structured Logging AVIOCONSULTING.COM https://github.com/mulesoft-consulting/json-logger
  • 9. AVIO Custom Logger • Open Source by AVIO Consulting • Published into your private exchange • Provides a base set of recommended fields as well as a message field • Provides configurable logger categories for each message • Provides key/value pair data element for application specific data • Uses Log4j MapMessage for flexible formatting • Uses Log4j JSONLayout for conversion to JSON, other layouts work as well Structured Logging AVIOCONSULTING.COM https://github.com/avioconsulting/mule-custom-logger
  • 11. Cloudhub Logging • OOTB Logging, 100mb or 30 days per application • Available in Anypoint Console or via API • Search within a single application only Anypoint Logging AVIOCONSULTING.COM
  • 12. Anypoint Monitoring Logging • Log aggregation across all Mule applications in all environments • Provides predefined filters such as environment and application • Search across multiple applications using simple query language • 200gb per Production core, additional can be purchased • Requires Titanium support subscription Anypoint Logging AVIOCONSULTING.COM
  • 14. Elasticsearch • Distribute full-text search engine based on Lucene • Search across all indexed data using power query language and SQL • Scalable storage backend defined by your needs • Can be hosted on-premise, on a cloud provider or fully managed on Elastic.co • Many advanced features available such as infrastructure metrics, APM and Machine Learning Elastic Stack AVIOCONSULTING.COM
  • 15. Logstash • Server-side data processing pipeline • Ingests data from many sources, transforms and enriches it, and stores it in your configured data store (Elasticsearch) • Many input sources supported such as Kafka, S3, SQS, http, beats, etc... Elastic Stack AVIOCONSULTING.COM Filebeats • Ships file based logs to Elasticsearch or Logstash • Understands many common log formats (syslog, apache, nginx)
  • 16. Kibana • Web based UI on top of Elasticsearch • Provides search, management, visualizations and dashboards • Can visualize logs, time series data, location data, etc.. Elastic Stack AVIOCONSULTING.COM
  • 18. Advantages • Run and keep your data anywhere you choose • Collect more than just Mule logs, including microservice logs (Java, .NET, node.js) and service metrics • Define alerts on log events using Watchers • Build custom dashboards and reports that can be shared with other users • Flexible archiving options and destinations such as S3 for low cost storage • Leverage advanced features such as Machine Learning Elastic Stack AVIOCONSULTING.COM
  • 19. Elastic Stack with Mulesoft On Premise AVIOCONSULTING.COM
  • 20. Elastic Stack with Mulesoft On Premise AVIOCONSULTING.COM Filebeats • Run on each server with a Mule runtime • Collects Mule runtime and application specific logs • Adds cloud provided metadata if applicable • These are shipped directly to logstash
  • 21. Elastic Stack with Mulesoft On Premise AVIOCONSULTING.COM Logstash • Accepts logs from filebeats using the beats input • Parses and transforms the messages as needed • Override and set standard elastic fields such as message and timestamp
  • 22. Elastic Stack with Mulesoft On Premise AVIOCONSULTING.COM Elasticsearch • All logs are stored into a single index • Depending on volume the index can be daily or monthly • Single index allows searching across apps • Indexes per environment and separate permissions for who can view them
  • 23. Elastic Stack with Mulesoft On Premise AVIOCONSULTING.COM Kibana • Users can then search logs and build dashboards/reports • Watchers can be configured through the Kibana UI to send alerts via email, Slack or other channels
  • 24. Elastic Stack with Mulesoft in Cloudhub AVIOCONSULTING.COM
  • 25. Elastic Stack with Mulesoft in Cloudhub AVIOCONSULTING.COM Cloudhub Mule Apps • A support ticket is required to enable custom logging on Cloudhub • Standard Cloudhub logging can still be kept with the correct log4j2.xml • Any log4j2 appender can be used to publish messages to other data stores
  • 26. Elastic Stack with Mulesoft in Cloudhub AVIOCONSULTING.COM Log4j Appenders • Appenders are written in Java and allow messages to be sent anywhere • SQS appender supports multiple threads and batching for high throughput https://github.com/avioconsulting/log4j2-sqs-appender
  • 27. Elastic Stack with Mulesoft in Cloudhub AVIOCONSULTING.COM Amazon SQS • Can exist in the same region as the Cloudhub applications for low latency • Almost unlimited throughput based on number of threads and latency • Any other queuing system can be used, but must be highly available
  • 28. Elastic Stack with Mulesoft in Cloudhub AVIOCONSULTING.COM Logstash • Accepts logs from filebeats using the SQS input • One pipeline per SQS Queue is needed, usually one per environment • Parses and transforms the messages as needed • Override and set standard elastic fields such as message and timestamp
  • 29. Elastic Stack with Mulesoft in Cloudhub AVIOCONSULTING.COM Elasticsearch • All logs are stored into a single index • Depending on volume the index can be daily or monthly • Single index allows searching across apps • Indexes per environment and separate permissions for who can view them
  • 30. Elastic Stack with Mulesoft in Cloudhub AVIOCONSULTING.COM Kibana • Users can then search logs and build dashboards/reports • Watchers can be configured through the Kibana UI to send alerts via email, Slack or other channels
  • 31. • Cloudhub and On-premise follow very similar patterns • Differences should only be in how the logs get from Mule applications to logstash, and minimal difference in how they are processed in logstash • These logs can be combined into a single Elastic index, allowing searching across apps in a hybrid environment • API Analytics can also be stored in Elastic for a single view into all data Elastic Stack with Mulesoft AVIOCONSULTING.COM
  • 32. Elastic Stack with Mulesoft AVIOCONSULTING.COM
  • 33. Elastic Stack with Mulesoft AVIOCONSULTING.COM
  • 34. Elastic Stack with Mulesoft AVIOCONSULTING.COM
  • 35. • Once all logs are being aggregated into a single index distributed tracing becomes much easier • The remaining challenge is passing a tracing id through all API’s and flows that can be used to correlate logs • This can be custom or follow the OpenTracing standard • This will need to be based in and out as an HTTP header on all API calls • Other technologies may be implemented differently such as an SQS message attribute or JMS property Distributed Tracing AVIOCONSULTING.COM
  • 36. • Elastic also provides APM capabilities beyond just distributed tracing • Leverages Mule runtime notification events to capture tracing information for each flow and processor automatically • Agent can also collect metrics such as JVM Heap usage, CPU, etc... • An open source agent is in development for Mulesoft • Works with Mule 3 but Mule 4 isn’t supported yet, but is being worked on APM AVIOCONSULTING.COM https://www.elastic.co/blog/observability-of-mulesoft-using-elastic-apm-to-monitor-mule-flows https://github.com/michaelhyatt/elastic-apm-mule3-agent
  • 39. All contents © MuleSoft Inc. What’s next 39 • Share: – Tweet your pictures with the hashtag #MuleMeetup – Invite your network to join: https://meetups.mulesoft.com/dallas/ • Feedback: – Contact your organizer Ruman Khan to suggest topics – Contact MuleSoft at meetup@mulesoft.com for ways to improve the program