Source

talks / python-logging / src / logstash.conf

input { 
    stdin { type => example } 
    udp { 
        port => 5959
        codec => json
    }
}

output { 
  stdout { codec => rubydebug }
  elasticsearch { embedded => true }
}