mirror of
https://github.com/MichaelCade/90DaysOfDevOps.git
synced 2025-07-09 07:20:05 +07:00
28 lines
476 B
Markdown
28 lines
476 B
Markdown
![]() |
# Introduction to Fluentd
|
||
|
|
||
|
## Collecting logs from files
|
||
|
|
||
|
Reading logs from a file we need an application that writes logs to a file. <br/>
|
||
|
Lets start one:
|
||
|
|
||
|
```
|
||
|
cd monitoring\logging\fluentd\introduction\
|
||
|
|
||
|
docker-compose up -d file-myapp
|
||
|
|
||
|
```
|
||
|
|
||
|
To collect the logs, lets start fluentd
|
||
|
|
||
|
```
|
||
|
docker-compose up -d fluentd
|
||
|
```
|
||
|
|
||
|
## Collecting logs over HTTP (incoming)
|
||
|
|
||
|
```
|
||
|
cd monitoring\logging\fluentd\introduction\
|
||
|
|
||
|
docker-compose up -d http-myapp
|
||
|
|
||
|
```
|