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

Payload value? #65

Open
alfsolli opened this issue Jul 6, 2017 · 2 comments
Open

Payload value? #65

alfsolli opened this issue Jul 6, 2017 · 2 comments

Comments

@alfsolli
Copy link

alfsolli commented Jul 6, 2017

Hi.

I'm trying to get logstash to post to a specific topic (routing key) and a specific payload.
Topic works fine, no problem.

But the payload starts with "2017-07-06T18:30:44.559Z %{host}......."

I've tried mutate and replace message field with the value, and that's what comes after {host} in the above example. Is there a way to remove the timestamp and host variable and only have a single field in the payload?

I assume I'm doing something wrong, but I can't find an answer with my google-fu. :\

@jordansissel
Copy link
Contributor

This is probably best a question for https://discuss.elastic.co/

@rafiifar
Copy link

I know that it is a bit old thread but i got there while searching for how to format logstash output in rabbitmq output plugin. To get only message value in payload you have to add format option to the codec as shown in the example below.

output {
 rabbitmq {
  (...)
  codec => plain {
   format => "%{[message]}"
  }
 }
}

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

3 participants