# Http output to ScienceLogic API

**URL:** <https://discuss.elastic.co/t/http-output-to-sciencelogic-api/119501>\
**Category:** Logstash\
**Created:** [February 12, 2018, 3:34pm UTC](https://discuss.elastic.co/t/http-output-to-sciencelogic-api/119501 "2018-02-12T15:34:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PandKing](https://avatars.discourse-cdn.com/v4/letter/p/258eb7/32.png) [@PandKing](https://discuss.elastic.co/u/PandKing)\
**Post date:** [February 12, 2018, 3:34pm UTC](https://discuss.elastic.co/t/http-output-to-sciencelogic-api/119501/1 "2018-02-12T15:34:24Z")

</div>

Hi all,

Trying to integrate a 3rd party API and Logstash 6.2.1  
I can do a simple post and create a message in the system but having trouble replicating this in the logstash http output.

This works from the command line to create my alert in ScienceLogic.  
curl -i -k -H "Content-Type:application/json" -u "${username}:${password}" -X POST $address -d '{"aligned\_resource":"/device/5013","message":"TESTING LogStash"}'

How could I represent that in a LS config

I have looked through this forum, release notes and GitHub.  
Seems https on self signed certs is still unsupported so I am using http.

---

<div class="post-metadata">

**Author:** ![PandKing](https://avatars.discourse-cdn.com/v4/letter/p/258eb7/32.png) [@PandKing](https://discuss.elastic.co/u/PandKing)\
**Post date:** [February 19, 2018, 10:38pm UTC](https://discuss.elastic.co/t/http-output-to-sciencelogic-api/119501/2 "2018-02-19T22:38:52Z")

</div>

Shouldn't this always add 2 fields ?  
input {  
beats {  
port =\> 5044  
}  
}

filter {  
mutate {  
add\_field =\> { "aligned\_resource" =\> "/device/5013" }  
add\_field =\> { "message" =\> "LOGSTASH" }  
}  
}

output{  
file {  
path =\> "/opt/logstash/%{host}.json"  
}

---

<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:** [March 19, 2018, 10:38pm UTC](https://discuss.elastic.co/t/http-output-to-sciencelogic-api/119501/3 "2018-03-19T22:38:55Z")

</div>

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