<?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 SPL to extract field and field value? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/SPL-to-extract-field-and-field-value/m-p/618888#M215090</link>
    <description>&lt;P&gt;SPL to extract field and field value when data seems like below&lt;BR /&gt;&lt;BR /&gt;screenshot attached.&lt;BR /&gt;I need help in extracting field as memUsedPct which should hold the value as 82,3.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AK_Splunk_0-1667206415395.png" style="width: 726px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/22226iA0A33A4BD768400E/image-dimensions/726x69?v=v2" width="726" height="69" role="button" title="AK_Splunk_0-1667206415395.png" alt="AK_Splunk_0-1667206415395.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Oct 2022 09:16:25 GMT</pubDate>
    <dc:creator>AK_Splunk</dc:creator>
    <dc:date>2022-10-31T09:16:25Z</dc:date>
    <item>
      <title>SPL to extract field and field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SPL-to-extract-field-and-field-value/m-p/618888#M215090</link>
      <description>&lt;P&gt;SPL to extract field and field value when data seems like below&lt;BR /&gt;&lt;BR /&gt;screenshot attached.&lt;BR /&gt;I need help in extracting field as memUsedPct which should hold the value as 82,3.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AK_Splunk_0-1667206415395.png" style="width: 726px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/22226iA0A33A4BD768400E/image-dimensions/726x69?v=v2" width="726" height="69" role="button" title="AK_Splunk_0-1667206415395.png" alt="AK_Splunk_0-1667206415395.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 09:16:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SPL-to-extract-field-and-field-value/m-p/618888#M215090</guid>
      <dc:creator>AK_Splunk</dc:creator>
      <dc:date>2022-10-31T09:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: SPL to extract field and field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SPL-to-extract-field-and-field-value/m-p/618891#M215093</link>
      <description>&lt;P&gt;Using screenshots to illustrate complex data is a terrible method. &amp;nbsp;Try using text.&lt;/P&gt;&lt;P&gt;This said, are you suggesting that you have input with CSV format? &amp;nbsp;One way to handle them is to use &lt;A title="multikv documentation in 8.2.3" href="https://docs.splunk.com/Documentation/Splunk/8.2.3/SearchReference/Multikv" target="_blank" rel="noopener"&gt;multikv&lt;/A&gt;. &amp;nbsp;Assuming that data is already in _raw:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| multikv forceheader=1&lt;/LI-CODE&gt;&lt;P&gt;If it is that in _raw, but in a field called CSV_data, swap it with _raw,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rename _raw as temp, CSV_data as _raw
| multikv forceheader=1
| rename temp as _raw ``` assume that you no longer care about CSV_data ```&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 31 Oct 2022 09:07:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SPL-to-extract-field-and-field-value/m-p/618891#M215093</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-10-31T09:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: SPL to extract field and field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SPL-to-extract-field-and-field-value/m-p/618901#M215096</link>
      <description>&lt;P&gt;Thanks for your quick response.&lt;/P&gt;&lt;PRE&gt;| multikv forceheader=1&lt;/PRE&gt;&lt;P&gt;The multikv command isnt helping much.Currently I am getting balnk in the memUsedPct.&lt;BR /&gt;&lt;BR /&gt;I need to extract only memUsedPct as 17,7.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 10:46:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SPL-to-extract-field-and-field-value/m-p/618901#M215096</guid>
      <dc:creator>AK_Splunk</dc:creator>
      <dc:date>2022-10-31T10:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: SPL to extract field and field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SPL-to-extract-field-and-field-value/m-p/619037#M215144</link>
      <description>&lt;P&gt;You need to demonstrate your data, in text form. (Anonymize as needed, but maintain format.) &amp;nbsp;How does a _raw event look like?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 04:17:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SPL-to-extract-field-and-field-value/m-p/619037#M215144</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-11-01T04:17:40Z</dc:date>
    </item>
  </channel>
</rss>

