How to receive logs from outside Azure PaaS

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
akaspar
Posts: 10
Joined: Wed Mar 20, 2019 1:28 pm

How to receive logs from outside Azure PaaS

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: How to receive logs from outside Azure PaaS

Post 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'
}
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked