Hi,
I'm creating a new plugin that writes events to google pub sub.
I don't understand the behavior of "message" when using http input.
I tried using stdin input & I can see the content of the message when I execute this ruby code:
puts event
for example I'm getting:
2017-02-22T01:12:26.612Z XXX-server-01 abcdef
(abcdef is my message)
and I also can extract the message with code: event.get("message").
However, when I use http input:
input {
http {
host => "XXX-server-01.domain123.corp"
port => 8080
}
}
I get for the puts command:
2017-02-22T01:09:46.708Z 10.105.11.17 %{message}
I don't understand the behavior, how should I extract the actual message?
When I run puts event.get("message") I get nothing.
Thanks!