Skip to content

Instantly share code, notes, and snippets.

@thebennos
Forked from markwalkom/logstash.conf
Created February 20, 2016 01:49
Show Gist options
  • Select an option

  • Save thebennos/9b19e617598c744cd421 to your computer and use it in GitHub Desktop.

Select an option

Save thebennos/9b19e617598c744cd421 to your computer and use it in GitHub Desktop.

Revisions

  1. @markwalkom markwalkom revised this gist Nov 20, 2015. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions logstash.conf
    Original file line number Diff line number Diff line change
    @@ -12,10 +12,9 @@ input {

    output {
    elasticsearch {
    host => "localhost"
    protocol => "http"
    hosts => [ "HOSTNAME_HERE" ]
    index => "%{[@metadata][_index]}"
    index_type => "%{[@metadata][_type]}"
    document_type => "%{[@metadata][_type]}"
    document_id => "%{[@metadata][_id]}"
    }
    stdout {
  2. @markwalkom markwalkom revised this gist May 27, 2015. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion logstash.conf
    Original file line number Diff line number Diff line change
    @@ -3,9 +3,10 @@ input {
    hosts => [ "HOSTNAME_HERE" ]
    port => "9200"
    index => "INDEXNAME_HERE"
    size => 500
    size => 1000
    scroll => "5m"
    docinfo => true
    scan => true
    }
    }

  3. @markwalkom markwalkom renamed this gist May 4, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. @markwalkom markwalkom revised this gist May 4, 2015. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions gistfile1.yml
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,3 @@
    ```
    input {
    elasticsearch {
    hosts => [ "HOSTNAME_HERE" ]
    @@ -21,5 +20,4 @@ output {
    stdout {
    codec => "dots"
    }
    }
    ```
    }
  5. @markwalkom markwalkom created this gist May 4, 2015.
    25 changes: 25 additions & 0 deletions gistfile1.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    ```
    input {
    elasticsearch {
    hosts => [ "HOSTNAME_HERE" ]
    port => "9200"
    index => "INDEXNAME_HERE"
    size => 500
    scroll => "5m"
    docinfo => true
    }
    }
    output {
    elasticsearch {
    host => "localhost"
    protocol => "http"
    index => "%{[@metadata][_index]}"
    index_type => "%{[@metadata][_type]}"
    document_id => "%{[@metadata][_id]}"
    }
    stdout {
    codec => "dots"
    }
    }
    ```