Hi, and thanks for any leads in advance.
I am using the following output configuration:
<match **>
@type rewrite_tag_filter
@label @LOGTYPE
<rule>
key $["logtype"]
pattern ^applog$
tag applog
</rule>
<rule>
key $["logtype"]
pattern ^applog$
tag system.${tag}
invert true
</rule>
</match>
<label @LOGTYPE>
<match applog>
@type relabel
@label @APPLOG
</match>
<match system.**>
@type relabel
@label @SYSTEM
</match>
</label>
<label @APPLOG>
<match applog>
@type elasticsearch
@include out.conf
logstash_prefix log.applog
</match>
</label>
<label @SYSTEM>
<match system.**>
@type elasticsearch
@include out.conf
logstash_prefix fluentd.k8s
</match>
</label>
The symptom is the fact that system.**
logs get to Kibana (so rewrite-tag-filter
works), but no logs of applog
origin are pushed to log.applog
index. I should note that the permissions on the user used to connect are admin
, and log.applog
is yet-uncreated index which I expect to be created (as I've witnessed with previous configurations). Elastic is configured to allow creation of new indices.
Elastic is deployed via fluentd-elasticsearch
helm chart. What steps can I perform in order to troubleshoot this issue? Can't seem to find Elastic's logs anywhere.
BTW, already tried @type stdout
as well, doesn't work. Yes, there are applogs
being created by the system, I see them when I reroute them to @SYSTEM
label. Incredible voodoo, level 85.