Hi,

Unfortunately these type of data sources are endless as such it would be
quite a challenge to write a native module to do this.
The functionality you are looking for can be quite easily implemented
from a script that would be invoked via im_exec.
A simple example would be a shell script that does this:
--------------------
#!/bin/sh
while true; do 
 curl http://server/rest/url
 sleep 1
done
--------------------
Since your REST endpoint already emits json (make sure it is not
formatted), it can be simply parsed in im_exec with parse_json();
You may not even need to parse if you want to ship it as is.

Regards,
Botond


On Tue, 29 Jul 2014 14:36:16 -0400
Chris <didji...@gmail.com> wrote:

> Hi folks,
> 
> Does NXLog support an ability to call a REST api over HTTP/S ? I want to
> call this service at a polling frequency I define. The response returns
> json formatted that would be parsed into nxlog shipped to logstash.
> 
> Any suggestions on the best approach? I know I can write and external
> program to do this, just wanted to see it NXLog had an IM modules that
> could be configured to support my need.
> 
> The im_http seems like its designed to just listen for the server to send
> messages (unless I'm reading it wrong).
> 
> Thank you!
> 
> Chris

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
nxlog-ce-users mailing list
nxlog-ce-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users

Reply via email to