What's the right way to read a file on a remote system?


(Tony Ennis) #1

I want to read this syslog file:

http://this.that.theother/dir/derp/syslog.log

The normal file plug-in (input?) does not like the URI; it wants a file:

<ArgumentError: File paths must be absolute, relative path specified:

What's the right way to read this file? There is no authentication or other type of roadblock. I can browse the file so I know it is there.

Also, from the logstash system, I can curl the URI and get the data.


(Magnus B├Ąck) #2

Use the http_poller plugin. Note that it won't tail the file and track its position like the file input does; it'll read and process it in full each time.


(system) #3

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