mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-06 03:33:26 +00:00
Adjust test in salt file to use boolean value
This commit is contained in:
18
docs/getting-started-guides/logging.md
Normal file
18
docs/getting-started-guides/logging.md
Normal file
@@ -0,0 +1,18 @@
|
||||
## Logging
|
||||
|
||||
**Experimental work in progress.**
|
||||
|
||||
### Logging with Fluentd and Elastiscsearch
|
||||
|
||||
To enable logging of the stdout and stderr output of every Docker container in
|
||||
a Kubernetes cluster set the shell environment
|
||||
variable ``FLUENTD_ELASTICSEARCH`` to ``true`` e.g. in bash:
|
||||
```
|
||||
export FLUENTD_ELASTICSEARCH=true
|
||||
```
|
||||
This will instantiate a [Fluentd](http://www.fluentd.org/) instance on each node which will
|
||||
collect all the Dcoker container log files. The collected logs will
|
||||
be targetted at an [Elasticsearch](http://www.elasticsearch.org/) instance assumed to be running on the
|
||||
local node and accepting log information on port 9200. This can be accomplished
|
||||
by writing a pod specification and service sepecificaiton to define an
|
||||
Elasticsearch service (more informaiton to follow shortly in the contrib directory).
|
Reference in New Issue
Block a user