<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to extract changing headers from multiline event? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-changing-headers-from-multiline-event/m-p/395292#M70513</link>
    <description>&lt;P&gt;Not sure if splunk can natively do that, as it needs to know the field name. In your scenario, how many arbitrary field names would you have? You could try to provide them as a CSV in FIELD_NAMES and see how it works.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.4/Data/Extractfieldsfromfileswithstructureddata#Forward_data_extracted_from_structured_data_files"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.4/Data/Extractfieldsfromfileswithstructureddata#Forward_data_extracted_from_structured_data_files&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Feb 2019 09:18:11 GMT</pubDate>
    <dc:creator>lakshman239</dc:creator>
    <dc:date>2019-02-28T09:18:11Z</dc:date>
    <item>
      <title>How to extract changing headers from multiline event?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-changing-headers-from-multiline-event/m-p/395291#M70512</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I am sending a multiline event to Splunk Enterprise. The first row contains metadata, the second row the field names, the third row the actual values. It looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;***SPLUNK*** host=hostname index=testindex source=testsource sourcetype=testsourcetype
Timestamp,"Arbitrary field name"
1550850412192,89
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The field name is arbitrary, which means it is variable. At the first event, it could be "Field name 1" and at the second "Field name 2".&lt;/P&gt;

&lt;P&gt;Currently, Splunk shows me two events.&lt;BR /&gt;
1. Timestamp,"Arbitrary field name"&lt;BR /&gt;
2. 1550850412192,89&lt;/P&gt;

&lt;P&gt;What I want is that it creates a field from the "Arbitrary field name" and assigns value 89.&lt;/P&gt;

&lt;P&gt;My props.conf looks like this at the moment:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;INDEXED_EXTRACTIONS = csv
FIELD_DELIMITER = ,
HEADER_FIELD_LINE_NUMBER = 2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Feb 2019 16:38:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-changing-headers-from-multiline-event/m-p/395291#M70512</guid>
      <dc:creator>dominikatvastli</dc:creator>
      <dc:date>2019-02-22T16:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract changing headers from multiline event?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-changing-headers-from-multiline-event/m-p/395292#M70513</link>
      <description>&lt;P&gt;Not sure if splunk can natively do that, as it needs to know the field name. In your scenario, how many arbitrary field names would you have? You could try to provide them as a CSV in FIELD_NAMES and see how it works.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.4/Data/Extractfieldsfromfileswithstructureddata#Forward_data_extracted_from_structured_data_files"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.4/Data/Extractfieldsfromfileswithstructureddata#Forward_data_extracted_from_structured_data_files&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 09:18:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-changing-headers-from-multiline-event/m-p/395292#M70513</guid>
      <dc:creator>lakshman239</dc:creator>
      <dc:date>2019-02-28T09:18:11Z</dc:date>
    </item>
  </channel>
</rss>

