
HumioParser
A HumioParser resource tells the
Humio Operator to create a LogScale Parser. Any number of
HumioParser resources may be created
and managed by the Operator.
The content of the yaml file will
depend on how the LogScale Parser should be configured. The
following shows an example of
HumioParser resource.
yaml
apiVersion: core.humio.com/v1alpha1
kind: HumioParser
metadata:
name: example-humioparser
namespace: logging
spec:
managedClusterName: example-humiocluster
name: example-humioparser
repositoryName: example-humiorepository
parserScript: |
case {
kubernetes.pod_name=/fluentbit/
| /\[(?<@timestamp>[^\]]+)\]/
| /^(?<@timestamp>.*)\[warn\].*/
| parseTimestamp(format="yyyy/MM/dd' 'HH:mm:ss", field=@timestamp);
parseJson();
* | kvParse()
}
EOF