<?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: Possible to show all values from same field name with different values from one Event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Possible-to-show-all-values-from-same-field-name-with-different/m-p/608972#M211767</link>
    <description>&lt;P&gt;Thank you very much, this works.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Aug 2022 09:55:22 GMT</pubDate>
    <dc:creator>FGAnders</dc:creator>
    <dc:date>2022-08-10T09:55:22Z</dc:date>
    <item>
      <title>Possible to show all values from same field name with different values from one Event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Possible-to-show-all-values-from-same-field-name-with-different/m-p/608961#M211761</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm trying to make my query show all the different values from one field (Product) that it is showing in the Event. I have data from Event that has Product=ABC, Product=????? and Product=??.&amp;nbsp; The Products will have random / different values.&lt;/P&gt;
&lt;P&gt;When I run the query it will only show me the Product=ABC not any of the others with different values but same field.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=X Name=* currency=* channel=* country=* state=*  Product=* | stats list(Name) as Name, list(currency) as currency, list(amount) as amount, list(channel) as device, list(country) as From, list(state) as Status,  list(Product) as Products |&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to have it show all the Products from the one event.&amp;nbsp; So in case there are 3 Products&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Products&lt;BR /&gt;ABC&lt;BR /&gt;?????&lt;BR /&gt;??&lt;/P&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;In case I have another event with four fields with Products it has to show all 4.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Products&lt;BR /&gt;ABC&lt;BR /&gt;?????&lt;BR /&gt;??&lt;BR /&gt;4th Product&lt;/P&gt;
&lt;P&gt;Is this possible ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 14:16:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Possible-to-show-all-values-from-same-field-name-with-different/m-p/608961#M211761</guid>
      <dc:creator>FGAnders</dc:creator>
      <dc:date>2022-08-10T14:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to show all values from same field name with different values from one Event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Possible-to-show-all-values-from-same-field-name-with-different/m-p/608962#M211762</link>
      <description>&lt;P&gt;This part of your search produces a pipeline of events from your index&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=X Name=* currency=* channel=* country=* state=*  Product=*&lt;/LI-CODE&gt;&lt;P&gt;This part aggregates all the events in the pipeline into a single event&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats list(Name) as Name, list(currency) as currency, list(amount) as amount, list(channel) as device, list(country) as From, list(state) as Status,  list(Product) as Products&lt;/LI-CODE&gt;&lt;P&gt;If you want to table each event separately (so you can see the multi-value Products for example), replace the stats with a table command&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| table Name, currency, amount, channel, country, state, Product&lt;/LI-CODE&gt;&lt;P&gt;If this is not what you are after, please can you provided some sample events (preferably in a code block &amp;lt;/&amp;gt;) and an example of the desired output&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 09:02:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Possible-to-show-all-values-from-same-field-name-with-different/m-p/608962#M211762</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-08-10T09:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to show all values from same field name with different values from one Event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Possible-to-show-all-values-from-same-field-name-with-different/m-p/608967#M211765</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for fast reply&lt;/P&gt;&lt;P&gt;I tried to only run as shorter query like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=X Name=JohnA | table Name Product&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still only see the first Product of the event from the index.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Name Product
JohnA ABC&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I go to the event in the index I can see that Product=ABC, Product=?? and Product=GOLD is shown in the event data. But it seems to only show me one of them.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Some of the data from event.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Name='JohnA',selection=2,Product='ABC',description=&amp;lt;null&amp;gt;,country='MT',selection=1,Product='??',description=&amp;lt;null&amp;gt;,country='MT',selection=2,Product='GOLD',description=&amp;lt;null&amp;gt;,country='MT',&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like it to show all the Products like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Name Product
JohnA ABC,??,GOLD&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Or like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Name Product
JohnA ABC
      ??
      GOLD&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything else its getting shown correctly except when there is same field with different values in one single event.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 09:47:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Possible-to-show-all-values-from-same-field-name-with-different/m-p/608967#M211765</guid>
      <dc:creator>FGAnders</dc:creator>
      <dc:date>2022-08-10T09:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to show all values from same field name with different values from one Event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Possible-to-show-all-values-from-same-field-name-with-different/m-p/608970#M211766</link>
      <description>&lt;P&gt;You could use rex to extract the multiple instances of the field(s), Product for example&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex max_match=0 "Product=(?&amp;lt;Product&amp;gt;[^,]+)"&lt;/LI-CODE&gt;&lt;P&gt;However, you probably want to look at your transforms.conf and props.conf for the source type to handle multi-value fields&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 09:50:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Possible-to-show-all-values-from-same-field-name-with-different/m-p/608970#M211766</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-08-10T09:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to show all values from same field name with different values from one Event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Possible-to-show-all-values-from-same-field-name-with-different/m-p/608972#M211767</link>
      <description>&lt;P&gt;Thank you very much, this works.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 09:55:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Possible-to-show-all-values-from-same-field-name-with-different/m-p/608972#M211767</guid>
      <dc:creator>FGAnders</dc:creator>
      <dc:date>2022-08-10T09:55:22Z</dc:date>
    </item>
  </channel>
</rss>

