<?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: Multiple results in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Multiple-results/m-p/742793#M240953</link>
    <description>&lt;P&gt;result is coming but the ones with similar names are not coming . where in&amp;nbsp; dns field similar fields are not coming.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Mar 2025 10:22:34 GMT</pubDate>
    <dc:creator>SN1</dc:creator>
    <dc:date>2025-03-27T10:22:34Z</dc:date>
    <item>
      <title>Multiple results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-results/m-p/742770#M240945</link>
      <description>&lt;P&gt;hello i have this search&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;| inputlookup lkp-all-findings&lt;BR /&gt;| lookup lkp-findings-blacklist.csv blfinding as finding OUTPUTNEW blfinding&lt;BR /&gt;| lookup lkp-asset-list-master "IP Adresse" as ip OUTPUTNEW Asset_Gruppe Scan-Company Scanner Scan-Location Location "DNS Name" as dns_name Betriebssystem as "Operation System"&lt;BR /&gt;| lookup lkp-GlobalIpRange.csv 3-Letter-Code as Location OUTPUTNEW "Company Code"&lt;BR /&gt;| dedup finding, dns_name, ip&lt;BR /&gt;| stats values("Company Code") as "Company Code" by finding, dns_name, ip, Asset_Gruppe, Scan-Company, Scanner, Scan-Location, Location, Betriebssystem&lt;BR /&gt;&lt;BR /&gt;now this is the result.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SN1_0-1743061931033.png" style="width: 493px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38349i8C8B65DFDA28CFEB/image-dimensions/493x204?v=v2" width="493" height="204" role="button" title="SN1_0-1743061931033.png" alt="SN1_0-1743061931033.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;now i have tried mvexpand , stats as well but it gives multiples values. The problem is let say for NessusHost "slo-svenessus01.emea.durr.int" there are let say 20 nessus host with this name now it is duplicating 20 "company code " (HHDE) in every single field for each Nessushost with this name and same for others as well.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 07:56:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-results/m-p/742770#M240945</guid>
      <dc:creator>SN1</dc:creator>
      <dc:date>2025-03-27T07:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-results/m-p/742778#M240947</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/274807"&gt;@SN1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you coult to use mvdedup:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup lkp-all-findings
| lookup lkp-findings-blacklist.csv blfinding as finding OUTPUTNEW blfinding
| lookup lkp-asset-list-master "IP Adresse" as ip OUTPUTNEW Asset_Gruppe Scan-Company Scanner Scan-Location Location "DNS Name" as dns_name Betriebssystem as "Operation System"
| lookup lkp-GlobalIpRange.csv 3-Letter-Code as Location OUTPUTNEW "Company Code"
| dedup finding, dns_name, ip
| stats values("Company Code") as "Company Code" by finding, dns_name, ip, Asset_Gruppe, Scan-Company, Scanner, Scan-Location, Location, Betriebssystem
| eval "Company Code"=mvdedup("Company Code")&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 08:22:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-results/m-p/742778#M240947</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2025-03-27T08:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-results/m-p/742781#M240948</link>
      <description>&lt;P&gt;This result doesn't look like the output of the search you shared, the values aggregation function already does a dedup i.e. you should only have unique values in the field, and the fields listed in the by clause of the stats command would appear first. Please clarify what your search was and the output you got from it.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 09:03:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-results/m-p/742781#M240948</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-03-27T09:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-results/m-p/742786#M240949</link>
      <description>&lt;P&gt;Oh yes , sorry I gave wrong search . This is the seach&lt;BR /&gt;&lt;BR /&gt;| inputlookup lkp-all-findings&lt;BR /&gt;| lookup lkp-findings-blacklist.csv blfinding as finding OUTPUTNEW blfinding&lt;BR /&gt;| lookup lkp-asset-list-master "IP Adresse" as ip OUTPUTNEW Asset_Gruppe Scan-Company Scanner Scan-Location Location "DNS Name" as dns_name Betriebssystem as "Operation System"&lt;BR /&gt;| lookup lkp-GlobalIpRange.csv 3-Letter-Code as Location OUTPUTNEW "Company Code"&lt;BR /&gt;| eval is_solved=if(lastchecked&amp;gt;lastfound OR lastchecked == 1,1,0),blacklisted=if(isnull(blfinding),0,1),timeval=strftime(lastchecked,"%Y-%m-%d")&lt;BR /&gt;| fillnull value="NA" "Company Code", Scan-Location&lt;BR /&gt;| search is_solved=0 blacklisted=0 Scan-Location="*" "Company Code"="*" severity="high"&lt;BR /&gt;| fields "Company Code" timeval ip dns "Operation System" severity pluginname timeval Scan-Location is_solved blacklisted&lt;BR /&gt;| sort severity&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 09:54:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-results/m-p/742786#M240949</guid>
      <dc:creator>SN1</dc:creator>
      <dc:date>2025-03-27T09:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-results/m-p/742789#M240950</link>
      <description>&lt;LI-CODE lang="markup"&gt;| inputlookup lkp-all-findings
| lookup lkp-findings-blacklist.csv blfinding as finding OUTPUTNEW blfinding
| lookup lkp-asset-list-master "IP Adresse" as ip OUTPUTNEW Asset_Gruppe Scan-Company Scanner Scan-Location Location "DNS Name" as dns_name Betriebssystem as "Operation System"
| lookup lkp-GlobalIpRange.csv 3-Letter-Code as Location OUTPUTNEW "Company Code"
| eval is_solved=if(lastchecked&amp;gt;lastfound OR lastchecked == 1,1,0),blacklisted=if(isnull(blfinding),0,1),timeval=strftime(lastchecked,"%Y-%m-%d")
| fillnull value="NA" "Company Code", Scan-Location
| search is_solved=0 blacklisted=0 Scan-Location="*" "Company Code"="*" severity="high"
| stats values("Company Code") as "Company Code" by timeval ip dns "Operation System" severity pluginname timeval Scan-Location is_solved blacklisted
| fields "Company Code" timeval ip dns "Operation System" severity pluginname timeval Scan-Location is_solved blacklisted
| sort severity&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 27 Mar 2025 10:16:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-results/m-p/742789#M240950</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-03-27T10:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-results/m-p/742790#M240951</link>
      <description>&lt;P&gt;After running the search the "Company Code " field is empty&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 10:07:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-results/m-p/742790#M240951</guid>
      <dc:creator>SN1</dc:creator>
      <dc:date>2025-03-27T10:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-results/m-p/742791#M240952</link>
      <description>&lt;P&gt;Sorry, try with double quotes around "Company Code" in the values function&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats values("Company Code") as "Company Code" by timeval ip dns "Operation System" severity pluginname timeval Scan-Location is_solved blacklisted&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 27 Mar 2025 10:15:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-results/m-p/742791#M240952</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-03-27T10:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-results/m-p/742793#M240953</link>
      <description>&lt;P&gt;result is coming but the ones with similar names are not coming . where in&amp;nbsp; dns field similar fields are not coming.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 10:22:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-results/m-p/742793#M240953</guid>
      <dc:creator>SN1</dc:creator>
      <dc:date>2025-03-27T10:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-results/m-p/742802#M240954</link>
      <description>&lt;P&gt;So, the "Company Code" problem is solved, but now you have another problem? Please share more specifics?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 10:58:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-results/m-p/742802#M240954</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-03-27T10:58:38Z</dc:date>
    </item>
  </channel>
</rss>

