I'm trying to use logstash to pull some data from a REST endpoint. Some of the GET queries will have lines that are quite long. I'd like to break up really long lines like in this example...
input {
http_poller {
someRestEndpoint => {
method => get
url => "http://somehost/blah?blah&blah&blah&reallyLongURLThatGoesOnForThreeHundredCharactersOrMore"
}
}
}
Would anyone care to give me an example of how long config lines like this can be broken up in the logstash.conf?
I've tried consecutive strings:
"first half of the really long line"
"second half of the really long line"
but logstash didn't like that. Nor did it like trying to concatenate with a '+':
"first half of the really long line" +
"second half of the really long line"
Out of desperation, I've even tried
"first half of the really long line" \
"second half of the really long line"
and
"first half of the really long line" + \
"second half of the really long line"
no joy.
I'm hoping one or more of the more seasoned logstash users (or Elastic folks) could either suggest an approach that involves embedding ruby in my config OR some other approach I haven't thought of yet.
In response to the probably "why would you want to do that??":
I'd like to keep my configs as readable as possible, and easily maintainable.
Thanks!
-KwM-