Sign inSign up

monasca/log-agent

By monasca

•Updated almost 8 years ago

Image
0

2.8K

monasca/log-agent repository overview

⁠Monasca Log Agent

This image use Logstash⁠ with Logstash-output-monasca_log_api plugin⁠ that provide functionality to send all logs to Monasca Log API⁠.

⁠Tags

Images in this repository are tagged as follows:

  • 0.0.1: standard SemVer⁠.
  • master, master-DATESTAMP: unstable testing builds from the master branch, these may have features or enhancements not available in stable releases, but are not production-ready.

⁠Usage

Monasca Log Agent requires running instance of Monasca Log API⁠ and Keystone.

When started Logstash will be listening on port configured with LOGSTASH_INPUT_PORT variable (default to 5610). It will accept all logs send to this port in format specified in LOGSTASH_INPUT_CODEC (default to json) coming on both TCP and UDP protocols.

To enable debug output from Logstash set DEBUG environment variable to True.

This container is designed to work together with Logspout⁠ container that will connect to all running containers on machine and proxy all they logs from STDOUT and STDERR to this container.

To add service dimension to any running container you need to initialize it with LOGSTASH_FIELDS environment variable containing kye=value pair of service as key and service name as value e.g.: "service=mysql".

⁠Configuration

VariableDefaultDescription
MONASCA_LOG_API_URLhttp://log-api:5607/v3.0Versioned Monasca Log API URL
OS_AUTH_URLhttp://keystone:35357/v3/Versioned Keystone URL
OS_USERNAMEmonasca-agentAgent Keystone username
OS_PASSWORDpasswordAgent Keystone password
OS_USER_DOMAIN_NAMEDefaultAgent Keystone user domain
OS_PROJECT_NAMEmini-monAgent Keystone project name
OS_PROJECT_DOMAIN_NAMEDefaultAgent Keystone project domain
LOGSTASH_INPUT_PORT5610Logstash listen on this port (tcp and udp) for new logs
LOGSTASH_INPUT_CODECjsonLogstash expect logs in this format

Tag summary

Content type

Image

Digest

Size

141.4 MB

Last updated

almost 8 years ago

docker pull monasca/log-agent