Skip to content
Discussion options

You must be logged in to vote

I've managed to accomplish this by using existing grep filter and multiple Flow objects with the same Output object.

Flow object 1 - Filter out Java service log events:

---
apiVersion: logging.banzaicloud.io/v1beta1
kind: Flow
metadata:
  name: my-service-cw-flow
  namespace: test
spec:
  filters:
  - tag_normaliser:
      format: ${pod_name}-service.log
  - concat:
      multiline_start_regexp: /^([a-zA-Z]+\s+\[\d+-\d+-\d+\s+\d+:\d+:\d+,\d+\])/
      continuous_line_regexp: /^(?![a-zA-Z]+\s+)(?!\d+\.\d+\.\d+\.\d+)/
      key: message
      flush_interval: 1
  - grep:
      exclude:
        - key: message
          pattern: /^(\d+\.\d+\.\d+\.\d+)/
  match:
  - select:
      labels:
        

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by csatib02
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
4 participants
Converted from issue

This discussion was converted from issue #1117 on October 16, 2023 17:12.