Two different grok pattern in a single config file

can i use the two different grok pattern in single config file?

Are you asking

  • if you can have two grok filters in the same Logstash configuration, or
  • if you can have two grok expressions in the same grok filter, or
  • if you can define two grok patterns in the same grok pattern file?

Either way the answer is yes.


Actually i want to ask i have a log file in this two type of log pattern.
so i have created two type of grok pattern . and i want to define both of grok pattern in same config file .