-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(logs): add format setting #2794
Conversation
0df905e
to
8dfd761
Compare
docs/collecting-container-logs.md
Outdated
#### `text` log format | ||
|
||
If you'd like to disable the wrapper, you can do so by setting: | ||
|
||
```yaml | ||
sumologic: | ||
logs: | ||
container: | ||
format: text | ||
``` | ||
|
||
Then the log lines from the previous section will look like the following in Sumo Logic: | ||
|
||
```text | ||
2007-03-01T13:00:00Z I am a log line | ||
``` | ||
|
||
```javascript | ||
{ | ||
log_property: "value", | ||
text: "I am a json log" | ||
} | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add example without any property as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think that would be helpful? I've already got four examples, fitting in two more makes the whole section less legible in general.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I rewrote this whole section while adding json_merge
.
There is one issue related to the text format: https://github.com/SumoLogic/sumologic-kubernetes-collection/blob/main/docs/fluent/troubleshoot-collection.md#using-text-format I don't know why it's only in fluentd troubleshooting though |
8dfd761
to
00231d8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pull request contains invalid labels. Please remove all of the following labels: ['do-not-merge/hold']
bf5568b
to
e2380a3
Compare
e2380a3
to
bddd994
Compare
Migration: SumoLogic/sumologic-kubernetes-tools#432 |
bddd994
to
02dfc41
Compare
Move the
logFormat
setting for Fluentd tosumologic.logs.container.format
, and make both Fluentd and otel use it.This requires a migration, which I will add shortly.