How to handle multiple heterogeneous inputs with Logstash?

前端 未结 3 1383
一整个雨季
一整个雨季 2020-12-04 05:56

Let\'s say you have 2 very different types of logs such as technical and business logs and you want:

  • raw technical logs be routed towards a graylog2 server usi
3条回答
  •  心在旅途
    2020-12-04 06:40

    I think logstash can't read more than 2 files in Input section . try the below

    input {
        file {
                type => "technical"
                path => "/home/technical/log"
        }
        file {
                type => "business"
                path => "/home/business/log"
        }
     file {
                type => "business1"
                path => "/home/business/log1"
        }
    } 
    

提交回复
热议问题