Can we send logs to webhook URL?

Can we have webhook URL as destination URL in outputs
need to send logstash data to Victorops

eg: something like this
output {
webhook {
hosts => [""]
}
}

Welcome to our community! :smiley:

You should be able to do that with https://www.elastic.co/guide/en/logstash/current/plugins-outputs-http.html

1 Like

Thanks team for the response.
I am using http output plugin.
When i use elasticsearch plugin as output it works and i see logs in Kibana:
However when i use http endpoint as output i get following error:

[2020-09-02T18:13:02,739][ERROR][logstash.outputs.http    ][main][ed8aaf18169f09b3c28ee3d1842d2f88697937305edc243e6c0e2ce4129030da] [HTTP Output Failure] Encountered non-2xx HTTP code 400 {:response_code=>400, :url=>"https://alert.victorops.com/integrations/generic/20131114/alert/2fdb4bdd-a45c-496a-bf8e-44cfa8fae950/Azure_Integration", :event=>#<LogStash::Event:0xfcbe89>}

My configuration is as follows:

input{
file{
    path =>"C:/Users/a.suryawanshi/Downloads/ELK/access*"
    type =>"nginx"
	start_position =>"beginning"
}
}
output {
  http {
    url => "https://alert.victorops.com/integrations/generic/20131114/alert/<route-key>"
    http_method => "post"
  }
}

Any guidance will be appreciated