Logstash.Conf

input {
    file {
        type => "SSRCode"
        path => "E:/FTPRootWorkSpace/SD/2016*/2016*/*.txt"
        start_position => "beginning"
    }
}

filter {
csv {
columns => ["Code","Source"]
separator => ","
}
kv {
source => "uri"
field_split => "&?"
value_split => "="
}

}

# output logs to console and to elasticsearch
output {
    stdout {}
    elasticsearch {
        hosts => ["132.16.1.86:9200"]
    }
}

  

相关文章:

  • 2021-12-26
  • 2021-12-26
  • 2022-01-10
  • 2021-08-24
  • 2022-01-08
  • 2021-12-12
  • 2022-12-23
  • 2021-07-28
猜你喜欢
  • 2021-06-02
  • 2021-11-04
  • 2022-12-23
  • 2022-02-05
  • 2022-12-23
  • 2021-11-02
  • 2022-02-16
相关资源
相似解决方案