Skip to content

Instantly share code, notes, and snippets.

@kbighorse
Created April 10, 2013 18:07

Revisions

  1. kbighorse created this gist Apr 10, 2013.
    24 changes: 24 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    input {
    redis {
    host => "10.0.0.1"
    type => "redis-input"
    # these settings should match the output of the agent
    data_type => "list"
    key => "logstash"

    # We use json_event here since the sender is a logstash agent
    format => "json_event"
    }
    }

    output {
    stdout {
    debug => true
    debug_format => "json"
    }

    file {
    gzip => true
    path => "/log/%{@source_host}/logstash_testing.log.gz"
    }
    }