Uploaded image for project: 'Apache NiFi MiNiFi C++'
  1. Apache NiFi MiNiFi C++
  2. MINIFICPP-1762

Add pod name attribute to flow files created by TailFile in the Kubernetes use case

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.12.0
    • None

    Description

      This is an extension of MINIFICPP-1734. Flow files produced by TailFile in the Kubernetes use case have attributes like this:

      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
      

      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:

      key:kubernetes.namespace value:default
      key:kubernetes.pod value:counter
      key:kubernetes.uid value:dd5befc8-5573-40c3-a136-8daf6eb77b01
      key:kubernetes.container value:count
      

      Attachments

        Issue Links

          Activity

            People

              fgerlits Ferenc Gerlits
              fgerlits Ferenc Gerlits
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m