<?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 How to extract from multivalue field result in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-from-multivalue-field-result/m-p/507431#M141874</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;DIV class="multivalue-subcell"&gt;Below is the result from my transaction command. How do I extract only one date from the&amp;nbsp; multiple dates below?&lt;/DIV&gt;&lt;DIV class="multivalue-subcell"&gt;I only need the first one which is&amp;nbsp;2020-07-05 22:02:01.&lt;/DIV&gt;&lt;DIV class="multivalue-subcell"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="multivalue-subcell"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="multivalue-subcell"&gt;2020-07-05 22:02:01&lt;/DIV&gt;&lt;DIV class="multivalue-subcell"&gt;2020-07-05 22:02:36&lt;/DIV&gt;&lt;DIV class="multivalue-subcell"&gt;2020-07-05 22:02:58&lt;/DIV&gt;&lt;DIV class="multivalue-subcell"&gt;2020-07-06 03:02:41&lt;/DIV&gt;&lt;DIV class="multivalue-subcell"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="extract.PNG" style="width: 412px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9482iD6070A067818EF12/image-size/large?v=v2&amp;amp;px=999" role="button" title="extract.PNG" alt="extract.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried mvindex and split but it doesnt give me a result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Sun, 05 Jul 2020 22:39:57 GMT</pubDate>
    <dc:creator>Noob_splunker</dc:creator>
    <dc:date>2020-07-05T22:39:57Z</dc:date>
    <item>
      <title>How to extract from multivalue field result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-from-multivalue-field-result/m-p/507431#M141874</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;DIV class="multivalue-subcell"&gt;Below is the result from my transaction command. How do I extract only one date from the&amp;nbsp; multiple dates below?&lt;/DIV&gt;&lt;DIV class="multivalue-subcell"&gt;I only need the first one which is&amp;nbsp;2020-07-05 22:02:01.&lt;/DIV&gt;&lt;DIV class="multivalue-subcell"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="multivalue-subcell"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="multivalue-subcell"&gt;2020-07-05 22:02:01&lt;/DIV&gt;&lt;DIV class="multivalue-subcell"&gt;2020-07-05 22:02:36&lt;/DIV&gt;&lt;DIV class="multivalue-subcell"&gt;2020-07-05 22:02:58&lt;/DIV&gt;&lt;DIV class="multivalue-subcell"&gt;2020-07-06 03:02:41&lt;/DIV&gt;&lt;DIV class="multivalue-subcell"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="extract.PNG" style="width: 412px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9482iD6070A067818EF12/image-size/large?v=v2&amp;amp;px=999" role="button" title="extract.PNG" alt="extract.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried mvindex and split but it doesnt give me a result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jul 2020 22:39:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-from-multivalue-field-result/m-p/507431#M141874</guid>
      <dc:creator>Noob_splunker</dc:creator>
      <dc:date>2020-07-05T22:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract from multivalue field result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-from-multivalue-field-result/m-p/507435#M141875</link>
      <description>&lt;P&gt;Split and mvindex should work, try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval 4G_OutageStart="2020-07-05 22:02:01,2020-07-05 22:02:36,2020-07-05 22:02:58,2020-07-06 03:02:41"
| eval 4G_OutageStart=split('4G_OutageStart',",")
| eval DataPoints=mvcount('4G_OutageStart')
| eval FirstDateTime=mvindex('4G_OutageStart',0,0)&lt;/LI-CODE&gt;&lt;P&gt;If things are not working, it may be that your data looks like an MV field, but is not. You can check with the mvcount eval statement I included above.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 00:45:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-from-multivalue-field-result/m-p/507435#M141875</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-07-06T00:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract from multivalue field result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-from-multivalue-field-result/m-p/507443#M141876</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223048"&gt;@Noob_splunker&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;It looks like your field name is the culprit.&lt;/P&gt;&lt;P&gt;Try renaming the field it to start with a letter.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rename 4G_OutageStart as FG_OutageStart
| eval firstValue=mvindex(FG_OutageStart,0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 02:41:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-from-multivalue-field-result/m-p/507443#M141876</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-07-06T02:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract from multivalue field result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-from-multivalue-field-result/m-p/507446#M141877</link>
      <description>&lt;P&gt;Surrounding fields with single quotes ' will ensure eval command works with field names that start with numbers or have spaces in, as in my example&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 02:57:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-from-multivalue-field-result/m-p/507446#M141877</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-07-06T02:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract from multivalue field result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-from-multivalue-field-result/m-p/507448#M141878</link>
      <description>&lt;P&gt;Yes sure&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 03:38:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-from-multivalue-field-result/m-p/507448#M141878</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-07-06T03:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract from multivalue field result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-from-multivalue-field-result/m-p/507453#M141879</link>
      <description>&lt;P&gt;yup it worked after i renamed it! thanks much!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 04:29:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-from-multivalue-field-result/m-p/507453#M141879</guid>
      <dc:creator>Noob_splunker</dc:creator>
      <dc:date>2020-07-06T04:29:42Z</dc:date>
    </item>
  </channel>
</rss>

