Logstash file input

Hi Team,
Need some advice regarding configuration options for file input. If we have multiple patterns for files to watch for, what are pros and cons for below options

  1. Configuring each file path pattern as a dedicated file module block
input {
   file { //type1*
   }
   file { //type2*
   }
}
  1. Configuring all patterns in single file module block.
input {
   file { // [type1*,type2*]
   }  
}

Thanks in advance!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.