2017-02-20 196 views

回答

2

您正在尋找the clone filter。這允許您複製事件並以不同的方式標記它們,以便稍後進行不同的過濾器和輸出階段。

if [type] == 'cloneable' { 
    clone { 
    clones => [ 'squarefile', 'roundfile' ] 
    } 
} 

對於通過有條件的事件,它們將被克隆到新的事件同類型squarefileroundfile。稍後filter {}output {}塊可以分別影響它們。

相關問題