<?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: How to combine my 2 searches to list all source and destination IPs based on same destination port? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160523#M45371</link>
    <description>&lt;P&gt;this puts it all into one list i need them in 2 lists one list for src and one list for dest &lt;/P&gt;</description>
    <pubDate>Wed, 29 Apr 2015 00:17:00 GMT</pubDate>
    <dc:creator>tve784</dc:creator>
    <dc:date>2015-04-29T00:17:00Z</dc:date>
    <item>
      <title>How to combine my 2 searches to list all source and destination IPs based on same destination port?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160507#M45355</link>
      <description>&lt;P&gt;I'm trying to get my current 2 searches into 1.  I am trying to get a list of all source and destination ip's based on the same destination port.  I have it in 2 searches by doing this on the end of my search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats count by src_ip
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;second search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats count by dest_ip
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;basically i just need a list of all source ip's and a list of all dest ip's that have the same dest port&lt;/P&gt;

&lt;P&gt;any tips or help would be greatly appreciated &lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2015 22:57:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160507#M45355</guid>
      <dc:creator>tve784</dc:creator>
      <dc:date>2015-04-28T22:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine my 2 searches to list all source and destination IPs based on same destination port?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160508#M45356</link>
      <description>&lt;P&gt;try this&lt;/P&gt;

&lt;P&gt;|transaction dest_port|table dest_port, src_ip, dest_ip&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:42:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160508#M45356</guid>
      <dc:creator>kml_uvce</dc:creator>
      <dc:date>2020-09-28T19:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine my 2 searches to list all source and destination IPs based on same destination port?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160509#M45357</link>
      <description>&lt;P&gt;Hello.&lt;BR /&gt;
try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=... soucetype=... dest_port=*| stats count by src_ip| stats count by dest_ip| table src_ip dest_ip dest_port
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Apr 2015 23:11:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160509#M45357</guid>
      <dc:creator>NOUMSSI</dc:creator>
      <dc:date>2015-04-28T23:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine my 2 searches to list all source and destination IPs based on same destination port?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160510#M45358</link>
      <description>&lt;P&gt;that's still grouping them together somehow.  Its making multiple rows with not all the same results in each row&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2015 23:13:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160510#M45358</guid>
      <dc:creator>tve784</dc:creator>
      <dc:date>2015-04-28T23:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine my 2 searches to list all source and destination IPs based on same destination port?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160511#M45359</link>
      <description>&lt;P&gt;this give 0 results&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2015 23:21:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160511#M45359</guid>
      <dc:creator>tve784</dc:creator>
      <dc:date>2015-04-28T23:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine my 2 searches to list all source and destination IPs based on same destination port?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160512#M45360</link>
      <description>&lt;P&gt;... dest_port=*| table src_ip dest_ip dest_port&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:38:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160512#M45360</guid>
      <dc:creator>NOUMSSI</dc:creator>
      <dc:date>2020-09-28T19:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine my 2 searches to list all source and destination IPs based on same destination port?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160513#M45361</link>
      <description>&lt;P&gt;i didnt think you can do 2 stats commands like that in a row because the second one wouldnt have any results because there is no dest ip to count by from the first stats command&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2015 23:24:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160513#M45361</guid>
      <dc:creator>tve784</dc:creator>
      <dc:date>2015-04-28T23:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine my 2 searches to list all source and destination IPs based on same destination port?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160514#M45362</link>
      <description>&lt;P&gt;yeah i tried that already it shows each src and dest ip paired together &lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2015 23:26:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160514#M45362</guid>
      <dc:creator>tve784</dc:creator>
      <dc:date>2015-04-28T23:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine my 2 searches to list all source and destination IPs based on same destination port?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160515#M45363</link>
      <description>&lt;P&gt;what do you want now?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2015 23:28:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160515#M45363</guid>
      <dc:creator>NOUMSSI</dc:creator>
      <dc:date>2015-04-28T23:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine my 2 searches to list all source and destination IPs based on same destination port?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160516#M45364</link>
      <description>&lt;P&gt;a list of all source ip's and a list of all destination ip's for any given destination port.  the way you have it shows each ip talking together i dont need that. I just need a list of the ip's not whats talking to what.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2015 23:31:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160516#M45364</guid>
      <dc:creator>tve784</dc:creator>
      <dc:date>2015-04-28T23:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine my 2 searches to list all source and destination IPs based on same destination port?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160517#M45365</link>
      <description>&lt;P&gt;for example, if you've number of port 8000, you want something like this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;dest_port=8000| table src_ip dest_ip dest_port
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Apr 2015 23:46:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160517#M45365</guid>
      <dc:creator>NOUMSSI</dc:creator>
      <dc:date>2015-04-28T23:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine my 2 searches to list all source and destination IPs based on same destination port?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160518#M45366</link>
      <description>&lt;P&gt;no so if you do that it lists out multiple results if there are any. for example if there are 10 src ip's that are 1.1.1.1 it list that 10 times.  same with dest ip's. so i guess i need unique source ip's and unique dest ip's.  sorry i should have put unique values in my question.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2015 23:50:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160518#M45366</guid>
      <dc:creator>tve784</dc:creator>
      <dc:date>2015-04-28T23:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine my 2 searches to list all source and destination IPs based on same destination port?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160519#M45367</link>
      <description>&lt;P&gt;i thought i had it with &lt;/P&gt;

&lt;P&gt;| dedup src_ip | stats list(src_ip), list(dest_ip) by dest_port&lt;/P&gt;

&lt;P&gt;but its still showing multiple of the same dest ip's&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:38:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160519#M45367</guid>
      <dc:creator>tve784</dc:creator>
      <dc:date>2020-09-28T19:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine my 2 searches to list all source and destination IPs based on same destination port?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160520#M45368</link>
      <description>&lt;P&gt;Ok now i understand you better. Use de commande &lt;STRONG&gt;dedup&lt;/STRONG&gt; to have unique values. Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;dest_port=8000| dedup src_ip | dedup dest_ip | table src_ip dest_ip dest_port
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Apr 2015 23:59:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160520#M45368</guid>
      <dc:creator>NOUMSSI</dc:creator>
      <dc:date>2015-04-28T23:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine my 2 searches to list all source and destination IPs based on same destination port?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160521#M45369</link>
      <description>&lt;P&gt;Hi if you need a list of all source ip's and dest&lt;BR /&gt;
ip's that have the same dest port&lt;/P&gt;

&lt;P&gt;try something like:&lt;/P&gt;

&lt;P&gt;......|eval src_dest_ip=coalesce(dest_ip,src_ip)|stats values (src_dest_ip)|where ......condition on ip's....&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:38:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160521#M45369</guid>
      <dc:creator>stephane_cyrill</dc:creator>
      <dc:date>2020-09-28T19:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine my 2 searches to list all source and destination IPs based on same destination port?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160522#M45370</link>
      <description>&lt;P&gt;yep already tried that one too.  It cuts out some of the ip's for some reason.  So like if i run my 2 separate searches i get 9 total src ip's and 20 total dest ip's. i run this and its only giving me 8 of each.  so 1 src ip and 12 dest ip's disappeared.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 00:06:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160522#M45370</guid>
      <dc:creator>tve784</dc:creator>
      <dc:date>2015-04-29T00:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine my 2 searches to list all source and destination IPs based on same destination port?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160523#M45371</link>
      <description>&lt;P&gt;this puts it all into one list i need them in 2 lists one list for src and one list for dest &lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 00:17:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160523#M45371</guid>
      <dc:creator>tve784</dc:creator>
      <dc:date>2015-04-29T00:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine my 2 searches to list all source and destination IPs based on same destination port?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160524#M45372</link>
      <description>&lt;P&gt;i figured it out&lt;/P&gt;

&lt;P&gt;| stats values(src_ip),values(dest_ip) by dest_port&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:38:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160524#M45372</guid>
      <dc:creator>tve784</dc:creator>
      <dc:date>2020-09-28T19:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine my 2 searches to list all source and destination IPs based on same destination port?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160525#M45373</link>
      <description>&lt;P&gt;Thanks, this helped me resolve a similar question. I was trying to get a list single list of website actions by IP address for a given date, and this helped me figure it out:&lt;/P&gt;

&lt;P&gt;| stats values(actions), earliest(datetime) by src_ip&lt;/P&gt;</description>
      <pubDate>Sat, 06 May 2017 14:51:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-2-searches-to-list-all-source-and-destination/m-p/160525#M45373</guid>
      <dc:creator>taylorgo</dc:creator>
      <dc:date>2017-05-06T14:51:47Z</dc:date>
    </item>
  </channel>
</rss>

