0

I am new to ELK stack and trying to configure fields in kibana dashboard. my logstash.conf

input {
tcp {
    port => 5000
}
}

filter{
json{
    source => "message"
    add_field => {
        "newfiled" => "static"
    }
}

}}

output {
elasticsearch {
    hosts => "elasticsearch:9200"
    index => "test"
}
}

But index test is not present when i use curl to elastic server. Iam using python-logstash.I have installed json plugin. someone can help me how to send the json to elastic search so that I could view it on kibana dashboard?

2
  • The ==> is incorrect syntax. Should be =>. Can you post logstash logs here? Commented Jun 6, 2017 at 14:23
  • I am using it inside docker containers. So I think access to log files is not possible. I tried with => did not work Commented Jun 6, 2017 at 14:38

1 Answer 1

1

Found the issue. There are two libraries json and jsonencode. If you are sending dictionary in text format(or using python logstash) make sure you use json encode

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.