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

Problem to split exec.stdout in Logstash #22

Open
diegopereiraeng opened this issue Aug 9, 2017 · 1 comment
Open

Problem to split exec.stdout in Logstash #22

diegopereiraeng opened this issue Aug 9, 2017 · 1 comment

Comments

@diegopereiraeng
Copy link

Hello,

First of all thanks for developing this beats, it is very helpfull.

I'm facing some problems to parse exec.stdout in logstash.

I'm trying to split every newline in stdout as new event, but I'm receiving this error:
[WARN ][logstash.filters.split ] Only String and Array types are splittable. field:exec.stdout is of type = NilClass

it is what I tried in logstash:

filter {
if [type] == "netstat" {
json {
source => "exec.stdout"
}
mutate {
convert => ["exec.stdout", "string"]
}
split {
field => "exec.stdout"
}
}
}

I noticed that exec.stdout is a keyword format.

Could you help me?

@diegopereiraeng
Copy link
Author

diegopereiraeng commented Aug 9, 2017

Is there a way to send the json output splited line by line, or an option that support this? and change to string?

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