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

split add_field throws after logstash upgrade from 6.5 to 6.8.8 #148

Open
vijaykaali811 opened this issue Jun 12, 2020 · 0 comments
Open

Comments

@vijaykaali811
Copy link

in test 7.x following working fine
mutate { split => [ "shorthost2", "." ] }
mutate { add_field => { "shorthost22" => "%{[shorthost2][0]}" } }

in production i have upgrade to 6.8 but following is not working
mutate {
split => [ "shorthost2", "." ]
}
mutate { add_field => { "shorthost1" => "%{[shorthost2][0]}" } }
and previous setting also not working
mutate {
split => [ "shorthost2", "." ]
add_field => { "shorthost1" => "%{shorthost2[0]}" }
}

Surprisingly , in both 6.5 & 6.8 for system metricbeat beat.hostname following is working
mutate {
split => [ "shorthost2", "." ]
add_field => { "shorthost1" => "%{shorthost2[0]}" }
}

only for data which comes from our custom script python script for rhel 5 . is not working
if i remove add_field => { "shorthost1" => "%{shorthost2[0]}" } all is fine but i am not able to hostname withfqdn in another field . tried all combination but still new shorthost1 have %{[pythonbeat][Hostname]} as value .

can you help on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant