Tag expansion extends an input tag with the full file path. Path and filename elements can carry identifiers such as Pod name and container ID, which can then support metadata lookup. section 4.6.4
For a Tail input, append `.*` to the tag name, such as `basic-file.*`. Emitted tags retain the base name and render path separators as dots. section 4.6.4
Listing 4.6 Tag expansion fragment: basic-file-read-tag-expansion.conf
[INPUT] name tail path ./chapter3/basic-file.txt read_from_head true tag basic-file.* #1
This minimal Tail configuration shows the `.*` suffix that enables full-path tag expansion. section 4.6.4
In Kubernetes log collection, a Kubernetes filter can parse the expanded tag for file-derived attributes and use them to query Kubernetes APIs for additional metadata. section 4.6.4
