Skip to content
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

Merged
merged 1 commit into from
Jan 19, 2023
Merged

feat(logs): add format setting #2794

merged 1 commit into from
Jan 19, 2023

Conversation

swiatekm
Copy link

@swiatekm swiatekm commented Jan 13, 2023

Move the logFormat setting for Fluentd to sumologic.logs.container.format, and make both Fluentd and otel use it.

This requires a migration, which I will add shortly.

@swiatekm swiatekm requested a review from a team as a code owner January 13, 2023 16:56
@github-actions github-actions bot added the documentation documentation label Jan 13, 2023
@swiatekm swiatekm force-pushed the feat/logformat branch 2 times, most recently from 0df905e to 8dfd761 Compare January 13, 2023 16:59
Comment on lines 103 to 163
#### `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"
}
```
Copy link
Contributor

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?

Copy link
Author

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.

Copy link
Author

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.

@sumo-drosiek
Copy link
Contributor

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

Copy link

@github-actions github-actions bot left a 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']

@swiatekm swiatekm force-pushed the feat/logformat branch 2 times, most recently from bf5568b to e2380a3 Compare January 18, 2023 16:16
@swiatekm
Copy link
Author

Migration: SumoLogic/sumologic-kubernetes-tools#432

@swiatekm swiatekm merged commit 7271ef3 into main Jan 19, 2023
@swiatekm swiatekm deleted the feat/logformat branch January 19, 2023 10:51
@swiatekm swiatekm mentioned this pull request Jan 19, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants