Skip to content

Example of fowarding kontena logs to fluent then to loggly.

License

Notifications You must be signed in to change notification settings

dishcandanty/kontena-loggly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kontena & Loggly

Example usage of kontena's logging to fluent to loggly

Setup

  • Update fluent.conf
    • Replace Loggly Token
  • Build Container
    • docker build -t logs/fluent .
  • Deploy Stack/Container

Usage

STACK='logs'
DOCKER_IMAGE='dologthingy:latest'
docker build -t logs/fluent .
docker run logs/fluent
# Install or Upgrade
kontena stack show $STACK_NAME > /dev/null && kontena stack upgrade $STACK_NAME || kontena stack install --name $STACK_NAME

Enable

kontena grid update --log-forwarder fluentd --log-opt fluentd-address=fluentd.logs.my-grid.kontena.local:24224 my-grid

Disable

kontena grid update --log-forwarder none my-grid

Notes / Additional Reading

About

Example of fowarding kontena logs to fluent then to loggly.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published