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

add Extract host IP section to logs stream docs #3155

Merged
merged 3 commits into from
Aug 22, 2023

Conversation

mdbirnstiehl
Copy link
Contributor

This PR closes Issue 3122.

@mdbirnstiehl mdbirnstiehl added backport-8.9 Automated backport with mergify backport-8.10 Automated backport with mergify labels Aug 17, 2023
@mdbirnstiehl mdbirnstiehl self-assigned this Aug 17, 2023
@github-actions
Copy link
Contributor

A documentation preview will be available soon:

Comment on lines +849 to +860
[source,console]
----
PUT /logs-example-default/_mapping
{
"properties": {
"host.ip": {
"type": "ip",
"ignore_malformed": true
}
}
}
----
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure if this is the recommended way of updating the mapping to ignore malformed IPs. It's what I found in the docs, but let me know if there is a preferred way.

Copy link
Member

Choose a reason for hiding this comment

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

LGTM


[discrete]
[[logs-stream-host-ip-query]]
=== Query logs based on `host.ip`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

CIDR notation and range queries were the two ways to query that I found most prevalent. Are there any additional ways to query we might add?

@mdbirnstiehl mdbirnstiehl marked this pull request as ready for review August 17, 2023 21:11
@mdbirnstiehl mdbirnstiehl requested a review from a team as a code owner August 17, 2023 21:11
Copy link
Member

@bmorelli25 bmorelli25 left a comment

Choose a reason for hiding this comment

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

A couple suggestions, otherwise LGTM

@mdbirnstiehl mdbirnstiehl merged commit af924a2 into elastic:main Aug 22, 2023
1 check passed
mergify bot pushed a commit that referenced this pull request Aug 22, 2023
mergify bot pushed a commit that referenced this pull request Aug 22, 2023
mdbirnstiehl added a commit that referenced this pull request Aug 22, 2023
(cherry picked from commit af924a2)

Co-authored-by: Mike Birnstiehl <114418652+mdbirnstiehl@users.noreply.github.com>
mdbirnstiehl added a commit that referenced this pull request Aug 22, 2023
(cherry picked from commit af924a2)

Co-authored-by: Mike Birnstiehl <114418652+mdbirnstiehl@users.noreply.github.com>

[discrete]
[[logs-stream-ip-ignore-malformed]]
=== Ignore malformed IP addresses
Copy link
Member

Choose a reason for hiding this comment

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

Nice way of introducing ignore_malformed 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-8.9 Automated backport with mergify backport-8.10 Automated backport with mergify
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create an "Extract the host IP" section
3 participants