Skip to content

Commit

Permalink
debugging: add detailed examples for enabling debug logging
Browse files Browse the repository at this point in the history
Signed-off-by: Wesley Pettit <[email protected]>
  • Loading branch information
PettitWesley committed Aug 24, 2023
1 parent 53d99cc commit 98e4159
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion troubleshooting/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,36 @@ When you experience a problem, before you cut us an issue, try the following.

Many Fluent Bit problems can be easily understood once you have full log output. Also, if you want help from the aws-for-fluent-bit team, we generally request/require debug log output.

The log level for Fluent Bit can be set in the [Service section](https://docs.fluentbit.io/manual/administration/configuring-fluent-bit), or by setting the env var `FLB_LOG_LEVEL=debug`.
The log level for Fluent Bit can be set in the [Service section](https://docs.fluentbit.io/manual/administration/configuring-fluent-bit), or by setting the environment variable `FLB_LOG_LEVEL=debug`.

For example, in the service section:
```
[SERVICE]
Log_Level debug
```

Remember, you can only have a single `[SERVICE]` configured across all of your configuration files for Fluent Bit.

Alternatively, set the log level via an environment variable. In your ECS task definition:
```
"environment": [
{
"name": "FLB_LOG_LEVEL",
"value": "debug"
}
],
```

In your kubernetes YAML:

```
spec:
containers:
- name: fluent-bit
env:
- name: FLB_LOG_LEVEL
value: debug
```

#### Enabling Monitoring for Fluent Bit

Expand Down

0 comments on commit 98e4159

Please sign in to comment.