<?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: Converting event into fields and values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Converting-event-into-fields-and-values/m-p/563651#M196366</link>
    <description>&lt;LI-CODE lang="markup"&gt;| extract pairdelim="," kvdelim=","&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 17 Aug 2021 14:17:46 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-08-17T14:17:46Z</dc:date>
    <item>
      <title>Converting event into fields and values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-event-into-fields-and-values/m-p/563646#M196362</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm trying to convert the message body of my events into fields.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The structure of the event message is in a comma delimeted key-value pair format. An example of the structure is:&lt;/P&gt;&lt;TABLE width="1287"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="64"&gt;Time&lt;/TD&gt;&lt;TD width="1223"&gt;Event&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="64"&gt;10/08/2021&lt;BR /&gt;15:09:49.000&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Timestamp,10/08/2021 15:09:49,Environment,EUAT,Artefact,ICE,Application,ICE,Domain,ws,Status,RUNNING&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="64"&gt;10/08/2021&lt;BR /&gt;15:09:49.000&lt;/TD&gt;&lt;TD&gt;Timestamp,10/08/2021 15:09:49,Environment,EUAT,Artefact,ICE,Application,Radiating Whitespaced App,Domain,dc,Status,ERROR&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="64"&gt;10/08/2021&lt;BR /&gt;15:09:49.000&lt;/TD&gt;&lt;TD&gt;Timestamp,10/08/2021 15:09:49,Environment,DEV,Artefact,MC,Application,MCIO,AppID,4,Hostname,4569erg,Domain,wsdc,Status,STOPPED&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way, through a search query to make every odd value a 'field' and every even value a corresponding 'value' for that field. Therefore, 'Timestamp' would be a field, with it's corresponding value, then 'Environment' would be the next field.&lt;BR /&gt;&lt;BR /&gt;The tricky part is that there can be varying lengths of key-value pair strings in the events.&amp;nbsp;For instance, the first row has 6 pairs of key-value pairs, whereas the third row has 8.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 13:15:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-event-into-fields-and-values/m-p/563646#M196362</guid>
      <dc:creator>shakSplunk</dc:creator>
      <dc:date>2021-08-17T13:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Converting event into fields and values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-event-into-fields-and-values/m-p/563651#M196366</link>
      <description>&lt;LI-CODE lang="markup"&gt;| extract pairdelim="," kvdelim=","&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 17 Aug 2021 14:17:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-event-into-fields-and-values/m-p/563651#M196366</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-08-17T14:17:46Z</dc:date>
    </item>
  </channel>
</rss>

