Skip to content

Logstash Configuration

Karl Spies edited this page Feb 23, 2014 · 1 revision

Sample Logstash Configuration

This will create a listing process on Port 6666 which will consume direct json logstash messages.

Sample Message

{"@version": 1, "message": "Hallo Karl", "@timestamp":"2014-02-22T17:50:39.287Z"}

Config

input {
  udp { 
	type => "magento-logs" 
	port => 6666                 
	codec => json  {
	charset => "UTF-8"
	}
  }
}

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