<commit_before>{{range .configList}}
<source>
  @type tail
  tag {{ $.containerId }}.{{ .Name }}
  path {{ .HostDir }}/{{ .File }}
  format {{ .Format }}
  pos_file /pilot/pos/fluentd.pos
  refresh_interval 5
</source>

<filter {{ $.containerId }}.{{ .Name }}>
@type add_time
time_key @timestamp
</filter>

<filter {{ $.containerId }}.{{ .Name }}>
@type record_transformer
<record>
host "#{Socket.gethostname}"
{{range $key, $value := .Tags}}
{{ $key }} {{ $value }}
{{end}}

{{if not .Tags.target}}target {{if $.source.Application}}{{ $.source.App }}-{{end}}{{ .Name }}{{end}}

{{if $.source.Application}}docker_app {{ $.source.App }} {{end}}
{{if $.source.Service}}docker_service {{ $.source.Service }} {{end}}
{{if $.source.Container}}docker_container {{ $.source.Container }} {{end}}
</record>
</filter>
{{end}}<commit_msg>bugfix: App-->Application<commit_after>{{range .configList}}
<source>
  @type tail
  tag {{ $.containerId }}.{{ .Name }}
  path {{ .HostDir }}/{{ .File }}
  format {{ .Format }}
  pos_file /pilot/pos/fluentd.pos
  refresh_interval 5
</source>

<filter {{ $.containerId }}.{{ .Name }}>
@type add_time
time_key @timestamp
</filter>

<filter {{ $.containerId }}.{{ .Name }}>
@type record_transformer
<record>
host "#{Socket.gethostname}"
{{range $key, $value := .Tags}}
{{ $key }} {{ $value }}
{{end}}

{{if not .Tags.target}}target {{if $.source.Application}}{{ $.source.Application }}-{{end}}{{ .Name }}{{end}}

{{if $.source.Application}}docker_app {{ $.source.Application }} {{end}}
{{if $.source.Service}}docker_service {{ $.source.Service }} {{end}}
{{if $.source.Container}}docker_container {{ $.source.Container }} {{end}}
</record>
</filter>
{{end}}
{'fraction_non_alphanumeric': 0.2520808561236623, 'fraction_numerical': 0.0011890606420927466, 'mean_word_length': 4.572847682119205, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3917431', 'n_tokens_mistral': 580, 'n_tokens_neox': 571, 'n_words': 130}