Skip to content

Commit 882fa08

Browse files
andselcamAtGitHub
andauthored
[DOC] Fix incorrect code example regarding @metadata (#194)
Co-authored-by: camAtGitHub <camAtGitHub@users.noreply.github.com>
1 parent 66002b8 commit 882fa08

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## Unreleased
2+
- [DOC] Fix incorrect pipeline code snippet
3+
14
## 6.2.5
25
- Update log4j dependency to 2.17.0
36

docs/index.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ If an event is missing this metadata, it can be copied into place from the sourc
105105
[source,txt]
106106
-----
107107
filter {
108-
if [@metadata][input][tcp][source] and not [host] {
108+
if [@metadata][input][tcp][source] and ![host] {
109109
mutate {
110-
copy {
110+
copy => {
111111
"[@metadata][input][tcp][source][name]" => "[host][name]"
112112
"[@metadata][input][tcp][source][ip]" => "[host][ip]"
113113
}

0 commit comments

Comments
 (0)