7,164
edits
Line 51: | Line 51: | ||
<syntaxhighlight lang="javascript" enclose="div"> | <syntaxhighlight lang="javascript" enclose="div"> | ||
# For Beat and LSF compatibility | # For Beat and LSF compatibility | ||
if [beat][ | if [beat][name] { | ||
# Remove host metadata | # Remove host metadata | ||
mutate { | mutate { | ||
Line 58: | Line 58: | ||
mutate { | mutate { | ||
add_field => { | add_field => { | ||
"host" => "%{[beat][ | "host" => "%{[beat][name]}" | ||
} | } | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
:beat.hostname ではなく beat. | :beat.hostname ではなく beat.name つかえと... | ||
===logstash の書籍=== | ===logstash の書籍=== |