skbkontur/logstash-input-http_file

Name: logstash-input-http_file

Owner: Kontur

Description: null

Forked from: starshayayord/logstash-input-http_file

Created: 2015-06-11 14:21:55.0

Updated: 2016-02-03 10:28:40.0

Pushed: 2016-04-05 14:08:31.0

Homepage: null

Size: 187

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Logstash Plugin

This is a plugin for Logstash. Use it when you need to monitor a large log file that is being written to. This plugin will poll the file and fetch only the changed portion using HTTP Range requests.

It is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way.

Documentation

Add to your logstash configuration file:

t {
http_file {
    url => ... # string (required), example: "http://example.com/file.log"
    interval => ... # number (optional), default: 5, interval between get requests
    start_position => # string (optional) "beginning" or "end", default: end, position to start reading: if set to "beginning", file will be read from the beginning when logstash service starts.
    username => # Basic Authorization username
    password => # Basic Authorization password
    max_request_bytes => # max request bytes default: 1048576
    sincedb_path => # sincedb path default: $HOME/.slice_md5(url)  
}

Standard options can also be used:

tags => ... # array (optional)
type => ... # string (optional)

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.