Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input {
- stdin {type => "manual" }
- file {
- path => "G:\ElasticSearch\wherelogare\test.log"
- start_position => "beginning"
- type => "logs"
- }
- file {
- path => "G:\ElasticSearch\wherelogare\test1.log"
- start_position => "beginning"
- type => "logs1"
- }
- }
- ########################################################
- filter {
- json {
- source => "message"
- target => "jdata"
- }
- }
- ########################################################
- output {
- elasticsearch {
- hosts => "localhost"
- user => "logstash_internal"
- password => "changeme"
- index => "logstash-dm88logs"
- }
- stdout { codec => rubydebug }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement