Skip to content

Commit

Permalink
Merge pull request #5378 from BacLuc/parse-container-log-files-with-f…
Browse files Browse the repository at this point in the history
…luentd

ecamp3-logging: strip prefix "{datetime} std(out|err) F " in fluentd
  • Loading branch information
BacLuc authored Jul 28, 2024
2 parents dfc1bc4 + bf9f3b8 commit 6b3a7f4
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ spec:
filters:
- customPlugin:
config: |
<filter **>
@type record_transformer
enable_ruby
<record>
log ${record['log'].gsub(/^.*std(out|err) F {/, "{")}
</record>
</filter>
<filter **>
@type parser
key_name log
Expand Down

0 comments on commit 6b3a7f4

Please sign in to comment.