Modern Digital Website Security: Prepare to face any form of malicious web activity and enable your sites to optimally serve your customers.
Low-Code Development: Learn the concepts of low code, features + use cases for professional devs, and the low-code implementation process.
DevOps Evangelist at Sematext
Nalbach, DE
Joined Nov 2014
About
10+ years of work experience as team leader, product manager and pre-sales engineer in the telecommunications industry. Passionate about new software technologies and scalable system architectures. Likes Node.js for POCs. twitter: @seti321
Stats
Reputation: | 2521 |
Pageviews: | 269.8K |
Articles: | 5 |
Comments: | 4 |
Articles
Comments
Jul 20, 2018 · Andre Lee-Moye
Please note we updated the post for new Filebeat / Metricbeat versions here: https://sematext.com/blog/docker-log-driver-alternatives/
Jul 20, 2018 · Andre Lee-Moye
Hi Daniel,
you can configure for the logging part for Sematext Docker Agent by setting the URL for Elasticsearch and the index name. The Index name can include date patterns like YYYY_MM_DD (all upper case).
docker run -e LOGSENE_TOKEN=YOUR_ELASTICSEARCH_INDEX_NAME -e LOGSENE_RECEIVER_URL=http://elasticsearch:9200 -v /var/run/docker.sock:/var/run/docker.sock sematext/sematext-agent-docker
You can also label individual containers with other Elasticsearch index names for log routing. E.g. docker run -p 8080:80 -e LOGSENE_TOKEN=MY_NGINX_LOG_INDEX nginx
Sematext Docker Agent inspects labels and env. variables and uses the LOGSENE_TOKEN label/env variable to ship the logs from a container to the related Elasticsearch index.
More details about log routing, especially in Kubernetes/OpenShift clusters used by multiple teams: https://dzone.com/articles/docker-log-management-and-enrichment
Documentation: https://sematext.com/docs/sematext-docker-agent/configuration/
--
I think Otis was referring to the plan to release the docker plugin for Logagent soon (next few weeks). Logagent is a lightweight open-source log shipper, and Sematext Docker Agent uses the parser functionality of Logagent. Please note we plan to provide a Docker input plugin for Logagent soon. Logagent has many input/output plugins so you could combine it in many ways with other tools (e.g. syslog UDP driver or file input with Elasticsearch output) https://sematext.com/docs/logagent/plugins/.
Jul 03, 2018 · DZone_karap
I like the idea to store logs in InfluxDB. We added several months ago InfluxDB plugins to Logagent. Logagent can parse and transform any log message to InfluxDB line protocol. See the InfluxDB example & complete list of Logagent plugins in the documentation.
Mar 14, 2018 · Michael_Gates
Danke!