Skip to content

Conversation

@alexcams
Copy link
Contributor

@alexcams alexcams commented Dec 2, 2025

Description

This PR adds support for parsing GCP DNS logs.
With this changes, the user will be able to see cloud dns logs reported information in log attributes instead of pasted as a raw json string into the log body, that could cause the user to overlook important info.

Link to tracking issue

Solves #44561

Testing

Added unit and functional tests.

Documentation

Updated README.md

Copy link
Contributor

@constanca-m constanca-m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good mostly, a couple of comments

| Original field | Log record attribute |
|---|---|
| `queryName` | `gcp.dns.query.name` |
| `queryType` | `gcp.dns.query.type` |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| `queryType` | `gcp.dns.query.type` |
| `queryType` | `dns.question.type` |

I assume this is the question type https://www.elastic.co/docs/reference/ecs/ecs-dns#field-dns-question-type

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think it should be added to semconv?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I do. I have already logged an issue for it open-telemetry/semantic-conventions#2432

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leave this PR as draft awaiting for issue resolution.

@alexcams alexcams marked this pull request as draft December 2, 2025 15:22
@alexcams alexcams force-pushed the add-cgp-ldns-logs branch 2 times, most recently from 492951d to defafc9 Compare December 3, 2025 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants