Shipping your logs to elk from mule app/cloudhub part 1
-
Upload
alex-fernandez -
Category
Software
-
view
259 -
download
0
Transcript of Shipping your logs to elk from mule app/cloudhub part 1
![Page 1: Shipping your logs to elk from mule app/cloudhub part 1](https://reader036.fdocuments.us/reader036/viewer/2022081503/588222721a28ab52368b4649/html5/thumbnails/1.jpg)
Shipping your logs to ELK from mule app/cloudhub - Part 1A guide by Alex Fernandez
![Page 2: Shipping your logs to elk from mule app/cloudhub part 1](https://reader036.fdocuments.us/reader036/viewer/2022081503/588222721a28ab52368b4649/html5/thumbnails/2.jpg)
Logs, Logs, Logs
“A server log is a log file (or several files) automatically created and maintained by a server consisting of a list of activities it performed.
A typical example is a web server log which maintains a history of page requests. “
Logs can contain information including client IP address, request date/time, page requested, HTTP code, bytes served, user agent, and
referrer are typically added. This data can be combined into a single file, or separated into distinct logs, such as an access log, error log,
or referrer log
-Wikipedia
![Page 3: Shipping your logs to elk from mule app/cloudhub part 1](https://reader036.fdocuments.us/reader036/viewer/2022081503/588222721a28ab52368b4649/html5/thumbnails/3.jpg)
Why do we need logs?
- Incident Reports
- Access Logs
- Analytics
A bird’s eye view of what is happening to the application
![Page 4: Shipping your logs to elk from mule app/cloudhub part 1](https://reader036.fdocuments.us/reader036/viewer/2022081503/588222721a28ab52368b4649/html5/thumbnails/4.jpg)
Tools that we need
1.ELK stack
2.docker/docker-compose
3.log4j configuration
4.Cloudhub Account
![Page 5: Shipping your logs to elk from mule app/cloudhub part 1](https://reader036.fdocuments.us/reader036/viewer/2022081503/588222721a28ab52368b4649/html5/thumbnails/5.jpg)
ELK stack
ELK(Elasticsearch, Logstash and Kibana) has been the de facto standard for “Operational Intelligence”
Elasticsearch for indexing logs
Logstash for ‘retrieval’ and ‘forwarder’ of logs
Kibana for visualizing and analysis of logs
![Page 6: Shipping your logs to elk from mule app/cloudhub part 1](https://reader036.fdocuments.us/reader036/viewer/2022081503/588222721a28ab52368b4649/html5/thumbnails/6.jpg)
Docker-ComposeDocker is an open platform for developers and sysadmins to build, ship, and run distributed applications, whether on laptops, data center VMs, or the cloud.
Docker had disrupted the world of system administration and making it the de facto of building isolated apps.
Docker-compose is a tool used for building ‘docker’ containers as a group using a single command.
![Page 7: Shipping your logs to elk from mule app/cloudhub part 1](https://reader036.fdocuments.us/reader036/viewer/2022081503/588222721a28ab52368b4649/html5/thumbnails/7.jpg)
![Page 8: Shipping your logs to elk from mule app/cloudhub part 1](https://reader036.fdocuments.us/reader036/viewer/2022081503/588222721a28ab52368b4649/html5/thumbnails/8.jpg)
Referenceshttp://logging.apache.org/log4j/2.x/
https://en.wikipedia.org/wiki/Server_log
https://github.com/splunk/splunk-plugin-eclipse/blob/master/com.splunk.project.java.ui/resources/log4j2.xml
https://gist.github.com/dsummersl/3744192
https://docs.docker.com/engine/installation/mac/