We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
input {...
Hi: docker version: 19.03.13 logstash version: 7.4.0 run command: docker run -d --name logstash-test -v /home/docker/logstash.conf:/usr/share/logstash/config/logstash.yml logstash:7.4.0 logstash.yml: ` input { file { path => "/home/docker/movies.csv" start_position => "beginning" sincedb_path => "/dev/null" } } filter { csv { separator => "," columns => ["id","content","genre"] }
docker run -d --name logstash-test -v /home/docker/logstash.conf:/usr/share/logstash/config/logstash.yml logstash:7.4.0
mutate { split => { "genre" => "|" } remove_field => ["path", "host","@timestamp","message"] }
mutate {
split => ["content", "("] add_field => { "title" => "%{[content][0]}"} add_field => { "year" => "%{[content][1]}"}
}
mutate { convert => { "year" => "integer" } strip => ["title"] remove_field => ["path", "host","@timestamp","message","content"] }
} output { elasticsearch { hosts => "http://es-cluster:9200" index => "movies" document_id => "%{id}" user => "es" password => "pwd" } stdout {} } **report error**:cannot unmarshal !!str input {... into map[string]interface {}`
**report error**:
Can you help me to fix it ,thanks
The text was updated successfully, but these errors were encountered:
Hi: docker version: 19.03.13 logstash version: 7.4.0 run command: docker run -d --name logstash-test -v /home/docker/logstash.conf:/usr/share/logstash/config/logstash.yml logstash:7.4.0 logstash.yml: ` input { file { path => "/home/docker/movies.csv" start_position => "beginning" sincedb_path => "/dev/null" } } filter { csv { separator => "," columns => ["id","content","genre"] } mutate { split => { "genre" => "|" } remove_field => ["path", "host","@timestamp","message"] } mutate { split => ["content", "("] add_field => { "title" => "%{[content][0]}"} add_field => { "year" => "%{[content][1]}"} } mutate { convert => { "year" => "integer" } strip => ["title"] remove_field => ["path", "host","@timestamp","message","content"] } } output { elasticsearch { hosts => "http://es-cluster:9200" index => "movies" document_id => "%{id}" user => "es" password => "pwd" } stdout {} } **report error**:cannot unmarshal !!str input {... into map[string]interface {}` Can you help me to fix it ,thanks
Did you solve this problem?
Sorry, something went wrong.
No branches or pull requests
Hi:
docker version: 19.03.13
logstash version: 7.4.0
run command:
docker run -d --name logstash-test -v /home/docker/logstash.conf:/usr/share/logstash/config/logstash.yml logstash:7.4.0
logstash.yml:
`
input {
file {
path => "/home/docker/movies.csv"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
filter {
csv {
separator => ","
columns => ["id","content","genre"]
}
mutate {
split => { "genre" => "|" }
remove_field => ["path", "host","@timestamp","message"]
}
mutate {
}
mutate {
convert => {
"year" => "integer"
}
strip => ["title"]
remove_field => ["path", "host","@timestamp","message","content"]
}
}
output {
elasticsearch {
hosts => "http://es-cluster:9200"
index => "movies"
document_id => "%{id}"
user => "es"
password => "pwd"
}
stdout {}
}
**report error**:
cannot unmarshal !!strinput {...
into map[string]interface {}`Can you help me to fix it ,thanks
The text was updated successfully, but these errors were encountered: