You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Ferenc Gerlits (Jira)" <ji...@apache.org> on 2022/02/25 08:16:00 UTC
[jira] [Created] (MINIFICPP-1762) Add pod_name attribute to flow files created by TailFile in the Kubernetes use case
Ferenc Gerlits created MINIFICPP-1762:
-----------------------------------------
Summary: Add pod_name attribute to flow files created by TailFile in the Kubernetes use case
Key: MINIFICPP-1762
URL: https://issues.apache.org/jira/browse/MINIFICPP-1762
Project: Apache NiFi MiNiFi C++
Issue Type: Improvement
Reporter: Ferenc Gerlits
Assignee: Ferenc Gerlits
Fix For: 0.12.0
This is an extension of MINIFICPP-1734. Flow files produced by TailFile in the Kubernetes use case have attributes like this:
{noformat}
FlowFile Attributes Map Content
key:TextFragmentAttribute.base_name value:0
key:TextFragmentAttribute.offset value:3431278
key:TextFragmentAttribute.post_name value:log
key:absolute.path value:/var/log/pods/default_counter_dd5befc8-5573-40c3-a136-8daf6eb77b01/count/0.log
key:filename value:0.3431278-3431357.log
key:flow.id value:cbd22e73-f01b-43ee-aa73-a28963dc1d56
key:path value:/var/log/pods/default_counter_dd5befc8-5573-40c3-a136-8daf6eb77b01/count
{noformat}
In order to make it easier to separate flow files coming from the logs of different pods, it would be useful to add some more attributes, for example:
{noformat}
key:kubernetes.namespace value:default
key:kubernetes.pod value:counter
key:kubernetes.uid value:dd5befc8-5573-40c3-a136-8daf6eb77b01
key:kubernetes.container value:count
{noformat}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)