Page 1 of 1

How to receive logs from outside Azure PaaS

Posted: Thu Jul 04, 2019 1:07 pm
by akaspar
Hi All, its my first time posting here; also, would like to mention Im really happy with Nagios LS.

Well, my question and I hope I can be precise here....

Our Nagios LS is running as it should be, now we have a request to receive logs from an outside source (not in our LAN), this source is an Azure service (DB) which can send logs only through POSTS commands in JSON format, ex. https://ournagioslogserver/POSTS

There is no file this service can send, only raw data as JSON, also, in is NOT an instance (VM) from Azure, it is a service provided by Azure, which is able to send logs as JSON.

Question, how should I configure the INPUTS section within Nagios LS, in order to receive an outside log?

We are testing using 'Postman', using POST (or GET) with JSONPLACEHOLDER free service as an internal test resource. (ex.: http://jsonplaceholder.typicode.com/posts) bu would need to know how to send it to our https://ournagioslogserver/POSTS.

Hope this makes sense to you

Re: How to receive logs from outside Azure PaaS

Posted: Mon Jul 08, 2019 11:18 am
by cdienger
The HTTP input can take POST'd JSON content:

https://www.elastic.co/guide/en/logstas ... -http.html

Instead of POSTing to https://ournagioslogserver/POSTS, you would want to POST to https://ournagioslogserver:8080. Try adding the below under Configure > Global(All Instances) > Global Config > Inputs, testing, and letting us know your results:

Code: Select all

http{
ssl=>'true'
}