# Can we send logs to webhook URL?

**URL:** <https://discuss.elastic.co/t/can-we-send-logs-to-webhook-url/247100>\
**Category:** Logstash\
**Created:** [September 1, 2020, 1:39pm UTC](https://discuss.elastic.co/t/can-we-send-logs-to-webhook-url/247100 "2020-09-01T13:39:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aishvarya\_Suryawansh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aishvarya_suryawansh/32/74884_2.png) [@Aishvarya\_Suryawansh](https://discuss.elastic.co/u/Aishvarya_Suryawansh)\
**Post date:** [September 1, 2020, 1:39pm UTC](https://discuss.elastic.co/t/can-we-send-logs-to-webhook-url/247100/1 "2020-09-01T13:39:09Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 2, 2020, 1:49am UTC](https://discuss.elastic.co/t/can-we-send-logs-to-webhook-url/247100/2 "2020-09-02T01:49:29Z")

</div>

Welcome to our community! 😃

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

---

<div class="post-metadata">

**Author:** ![Aishvarya\_Suryawansh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aishvarya_suryawansh/32/74884_2.png) [@Aishvarya\_Suryawansh](https://discuss.elastic.co/u/Aishvarya_Suryawansh)\
**Post date:** [September 2, 2020, 12:59pm UTC](https://discuss.elastic.co/t/can-we-send-logs-to-webhook-url/247100/3 "2020-09-02T12:59:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 30, 2020, 12:59pm UTC](https://discuss.elastic.co/t/can-we-send-logs-to-webhook-url/247100/4 "2020-09-30T12:59:07Z")

</div>

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