All Projects → logzio → docker-collector-logs

logzio / docker-collector-logs

Licence: Apache-2.0 License
No description or website provided.

Programming Languages

python
139335 projects - #7 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to docker-collector-logs

knip
KNIME Image Processing Extension
Stars: ✭ 45 (+246.15%)
Mutual labels:  integration
k8s-vault-webhook
A k8s vault webhook is a Kubernetes webhook that can inject secrets into Kubernetes resources by connecting to multiple secret managers
Stars: ✭ 107 (+723.08%)
Mutual labels:  integration
djcra
Django ❤️ create-react-app integration example
Stars: ✭ 12 (-7.69%)
Mutual labels:  integration
steam-ts
Steam integration for TeamSpeak 3
Stars: ✭ 56 (+330.77%)
Mutual labels:  integration
Tuya-v2-Supported-Devices
A collection of all of the known working Tuya v2 Devices
Stars: ✭ 30 (+130.77%)
Mutual labels:  integration
ha-rhvoice
Home Assistant integration for RHVoice - a local text-to-speech engine.
Stars: ✭ 19 (+46.15%)
Mutual labels:  integration
maasta
MAAS Terraform Ansible
Stars: ✭ 132 (+915.38%)
Mutual labels:  integration
apibusinesshub-integration-recipes
Accelerate integration projects using SAP Cloud Platform Integration with crowdsourced best practices, curated by experts, designed for developers.
Stars: ✭ 43 (+230.77%)
Mutual labels:  integration
spring4-hibernate5-example
Spring 4 and Hibernate 5 integration example using annotations.
Stars: ✭ 16 (+23.08%)
Mutual labels:  integration
Movie Trailers SwiftUI
A simple app which shows the lastest movies trailers based on different genres developed using SwiftUI.
Stars: ✭ 51 (+292.31%)
Mutual labels:  integration
scyjava
⚡ Supercharged Java access from Python ⚡
Stars: ✭ 22 (+69.23%)
Mutual labels:  integration
camel-quarkus-examples
Apache Camel Quarkus Examples
Stars: ✭ 37 (+184.62%)
Mutual labels:  integration
integreat-app
React JS and React Native App for Integreat
Stars: ✭ 25 (+92.31%)
Mutual labels:  integration
notion-enhancer.github.io
the notion-enhancer project's website
Stars: ✭ 24 (+84.62%)
Mutual labels:  integration
3scale-security-oidc-demo
Securing APIs with OpenID Connect using 3scale API Management and Red Hat Single Sign On
Stars: ✭ 25 (+92.31%)
Mutual labels:  integration
cuba-rest-js
Moved to https://github.com/cuba-platform/frontend/tree/master/packages/cuba-rest-js
Stars: ✭ 15 (+15.38%)
Mutual labels:  integration
gmock-xcode
Xcode integration for GoogleMock through XCTest
Stars: ✭ 18 (+38.46%)
Mutual labels:  integration
pivot-react
Integration example of WebDataRocks web reporting tool with React framework
Stars: ✭ 33 (+153.85%)
Mutual labels:  integration
document-server-integration
Examples on how to integrate ONLYOFFICE Document Server into your own website or application
Stars: ✭ 68 (+423.08%)
Mutual labels:  integration
camel-karavan
Karavan the Camel Integration Designer
Stars: ✭ 77 (+492.31%)
Mutual labels:  integration

docker-collector-logs

docker-collector-logs is a Docker container that uses Filebeat to collect logs from other Docker containers and forward those logs to your Logz.io account.

To use this container, you'll set environment variables in your docker run command. docker-collector-logs uses those environment variables to generate a valid Filebeat configuration for the container. docker-collector-logs mounts docker.sock and the Docker logs directory to the container itself, allowing Filebeat to collect the logs and metadata.

docker-collector-logs ships logs only. If you want to ship metrics to Logz.io, see docker-collector-metrics.

Note:

  • Upgrading to a newer version of a docker-collector-logs while it is already running will cause it to resend logs that are within the ignoreOlder timeframe. You can minimize log duplicates by setting the ignoreOlder parameter of the new docker to a lower value (for example, 20m).
  • This integration supports ARM architecture as of logzio/docker-collector-logs:0.1.6.

docker-collector-logs setup

1. Pull the Docker image

Download the logzio/docker-collector-logs image:

docker pull logzio/docker-collector-logs

2. Run the container

For a complete list of options, see the parameters below the code block.👇

docker run --name docker-collector-logs \
--env LOGZIO_TOKEN="<ACCOUNT-TOKEN>" \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-v /var/lib/docker/containers:/var/lib/docker/containers \
logzio/docker-collector-logs

Parameters

Parameter Description
LOGZIO_TOKEN Required. Your Logz.io account token. Replace <ACCOUNT-TOKEN> with the token of the account you want to ship to.
LOGZIO_REGION Default: US region.
Logz.io region code to ship the logs to. This region code changes depending on the region your account is hosted in. For example, accounts in the EU region have region code eu.
For more information, see Account region on the Logz.io Docs.
LOGZIO_TYPE Default: Docker image name
The log type you'll use with this Docker. This is shown in your logs under the type field in Kibana.
Logz.io applies parsing based on type.
LOGZIO_CODEC Default: plain
Set to json if shipping JSON logs. Otherwise, set to plain.
matchContainerName Comma-separated list of containers you want to collect the logs from. If a container's name partially matches a name on the list, that container's logs are shipped. Otherwise, its logs are ignored.
Note: Can't be used with skipContainerName
skipContainerName Comma-separated list of containers you want to ignore. If a container's name partially matches a name on the list, that container's logs are ignored. Otherwise, its logs are shipped.
Note: Can't be used with matchContainerName
additionalFields Include additional fields with every message sent, formatted as "fieldName1=fieldValue1;fieldName2=fieldValue2".
To use an environment variable, format as "fieldName1=fieldValue1;fieldName2=$ENV_VAR_NAME". In that case, the environment variable should be the only value in the field. In case the environment variable can't be resolved, the field will be omitted.
excludeLines Comma-separated list of regular expressions to match the lines that you want Filebeat to exclude.
Note: Does not behave well with regular expressions containing commas ,
includeLines Comma-separated list of regular expressions to match the lines that you want Filebeat to include.
Note: Does not behave well with regular expressions containing commas ,
ignoreOlder Default 3h
Logs older than this will be ignored
renameFields Rename fields with every message sent, formatted as "oldName,newName;oldName2,newName2".
To use an environment variable, format as "oldName,newName;oldName2,$ENV_VAR_NAME". In that case, the environment variable should be the only value in the field. In case the environment variable can't be resolved, the field will be omitted.
HOSTNAME Default ''
Insert your host name if you want it to appear under the field agent.name. If no value entered, agent.name will show the container's id.
multilinePattern Default ''
Insert your regex pattern. See Filebeat's official documentation for further info.
multilineNegate Default 'false'
Insert 'true' to negate the pattern.
Note: Cannot be used without multilinePattern. See Filebeat's official documentation for further info.
multilineMatch Default 'after'
Specifies how Filebeat combines matching lines into an event. The settings are after or before. The behavior of these settings depends on what you specify for negate.
Note: Cannot be used without multilinePattern. See Filebeat's official documentation for further info.
LOG_LEVEL Default info. Set log level for the collector. Allowed values are: debug, info, warning, error.

Note: By default, logs from docker-collector-logs and docker-collector-metrics containers are ignored.

3. Check Logz.io for your logs

Spin up your Docker containers if you haven’t done so already. Give your logs a few minutes to get from your system to ours, and then open Kibana.

Change log

  • 0.2.0:
    • Allow changing log level.
    • Upgrade base image to python 3.11.
  • 0.1.6: Support ARM architecture.
  • 0.1.5: Added rename processors.
  • 0.1.4:
    • BREAKING CHANGES:
      • Upgrade to Filebeat 7.12.1.
    • Added multiline variables for support of multiline patterns.
  • 0.1.3: Processors were moved to root level of the yml to allow rename of filebeat metadata fields.
  • 0.1.2: Add rename processor ("renameFields") to specify a list of fields to rename.
  • 0.1.1: Fixed script to match Filebeat 7.9 changes.
  • 0.1.0:
    • BREAKING CHANGES:
      • Upgrade to Filebeat 7.9.0.
      • Deprecated LOGZIO_URL. Use LOGZIO_REGION instead.
    • Update default_filebeat.yml configuration to match newer Filebeat version.
    • Support adding hostname.
  • 0.0.6: Updated new public SSL certificate in Docker image & Filebeat configuration.
  • 0.0.4: Added options to include or exclude lines
  • 0.0.3: Support additional fields
  • 0.0.2: Add an option to configure logzio_codec and logzio_type
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].