Invalid url

Hi

I'm getting invalid url error in Logstash.
My config:

http_poller {
      urls => {
        executedsteps => {
          method => get
          cacert => "/elk-stack/cert.pem"
         url => "https://odata-trial.cognigy.ai/v2.0/ExecutedSteps?$orderby=timestamp desc& apikey=apikey"
          headers => {
          Accept => "application/json"
          }
        }
      }

It's valid url, I can e.g. get that endpoint via browser
Once I remove $orderby=timestamp desc

Why Logstash doesn't accept $orderby=timestamp desc ?
What's possible solution?

Thanks,
Kuba

RESOLVED adding %20 instead of space works.
Forgot to encode space to URL encoding.

1 Like

Thanks for sharing that solution!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.