Skip to content

Conversation

epasham
Copy link

@epasham epasham commented Oct 13, 2017

filebeat config is loaded from configMap object

Copy link
Owner

@ApsOps ApsOps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

filebeat.prospectors:
- input_type: log
paths:
- "/var/lib/docker/containers/*/*.log"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be /var/log/containers/*.log to get the metadata from filenames.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

hosts: ${LOGSTASH_HOSTS:?No logstash host configured. Use env var LOGSTASH_HOSTS to set hosts.}
timeout: 15
# Available log levels are: critical, error, warning, info, debug
logging.level: info
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you take this config from filebeat.yml in the repo to keep it as default config?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

name: logging-cfg
items:
- key: filebeat.yml
path: filebeat.yml
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably better to update it in the README?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kube manifest file and the readme file is updated

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need to run this in privileged mode? And this is already in README, so you might as well remove this file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants