Read log files from the http url


(Hareesh) #1

I am trying to read the log file from a remote location. Example, All log files are available in the below url:

http://host_name:port/path1/path2

And the log file name would be as follows (Time format)

  • web_server_log.log
  • web_server_log.log_yyyy_mm_dd_hh_mm_ss

Can I know how this can be configured in logstash configuration file in the input block?

I was trying to use the 'logstash-input-http', but it did not work. http_poll also tried, it polls complete file instead of only the changed files.


(Magnus Bäck) #2

This is a bad idea. Logstash won't be able to fetch only new data so every time it's run it'll fetch everything.


(Hareesh) #3

is there any input plugin available which tails the log files over http?


(Magnus Bäck) #4

is there any input plugin available which tails the log files over http?

No.


(system) #5

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