<?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: table for two dimentional distribution in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/table-for-two-dimentional-distribution/m-p/45905#M10952</link>
    <description>&lt;P&gt;... | stats count by scr,dst&lt;/P&gt;</description>
    <pubDate>Mon, 09 Jan 2012 14:29:50 GMT</pubDate>
    <dc:creator>imrago</dc:creator>
    <dc:date>2012-01-09T14:29:50Z</dc:date>
    <item>
      <title>table for two dimentional distribution</title>
      <link>https://community.splunk.com/t5/Splunk-Search/table-for-two-dimentional-distribution/m-p/45904#M10951</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am trying to create a bubble chart (this is not very much documented, hopefully &lt;A href="http://splunk-base.splunk.com/answers/25336/example-of-a-bubble-chart"&gt;this example&lt;/A&gt; will help) for a 2D distribution.&lt;/P&gt;

&lt;P&gt;I have a set of data (IP addresses) and I would like to count the amount of "pairs" for a given time (ie. the IP addresses talking to each other). My search correctly extracts &lt;CODE&gt;src&lt;/CODE&gt; and &lt;CODE&gt;dst&lt;/CODE&gt; (the pair of IP addresses) and I want to build a matrix:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;src1 dst1 nr1
src2 dst1 nr2
src3 dst1 nr3
src2 dst1 nr4
src2 dst2 nr5
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I know that my search should end up with &lt;CODE&gt;... | table src, dst, nr-something&lt;/CODE&gt;, I just do not know how to extract &lt;CODE&gt;nr-something&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2012 14:04:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/table-for-two-dimentional-distribution/m-p/45904#M10951</guid>
      <dc:creator>wsw70</dc:creator>
      <dc:date>2012-01-09T14:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: table for two dimentional distribution</title>
      <link>https://community.splunk.com/t5/Splunk-Search/table-for-two-dimentional-distribution/m-p/45905#M10952</link>
      <description>&lt;P&gt;... | stats count by scr,dst&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2012 14:29:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/table-for-two-dimentional-distribution/m-p/45905#M10952</guid>
      <dc:creator>imrago</dc:creator>
      <dc:date>2012-01-09T14:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: table for two dimentional distribution</title>
      <link>https://community.splunk.com/t5/Splunk-Search/table-for-two-dimentional-distribution/m-p/45906#M10953</link>
      <description>&lt;P&gt;What are you really asking for?&lt;/P&gt;

&lt;P&gt;1) How to count the source/destination pairs&lt;BR /&gt;
OR&lt;BR /&gt;
2) How to extract nr-something?&lt;/P&gt;

&lt;P&gt;Please provide us with some sample data.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2012 14:37:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/table-for-two-dimentional-distribution/m-p/45906#M10953</guid>
      <dc:creator>RubenOlsen</dc:creator>
      <dc:date>2012-01-09T14:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: table for two dimentional distribution</title>
      <link>https://community.splunk.com/t5/Splunk-Search/table-for-two-dimentional-distribution/m-p/45907#M10954</link>
      <description>&lt;P&gt;If you just want to count the source / destination pairs without putting the count sums into various buckets, go with imrago's answer.&lt;/P&gt;

&lt;P&gt;If you need to group the source / destination pairs by a 1 hour timeslot - you might want to try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval SrcDestPair = src + " " + dest | timechart span=1h count by SrcDestPair
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Jan 2012 14:43:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/table-for-two-dimentional-distribution/m-p/45907#M10954</guid>
      <dc:creator>RubenOlsen</dc:creator>
      <dc:date>2012-01-09T14:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: table for two dimentional distribution</title>
      <link>https://community.splunk.com/t5/Splunk-Search/table-for-two-dimentional-distribution/m-p/45908#M10955</link>
      <description>&lt;P&gt;It was the first one (how to count). Both answers are exactly what I was looking for but I should have not used the word "extract" in my last sentence (and replace it by "count").&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2012 15:10:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/table-for-two-dimentional-distribution/m-p/45908#M10955</guid>
      <dc:creator>wsw70</dc:creator>
      <dc:date>2012-01-09T15:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: table for two dimentional distribution</title>
      <link>https://community.splunk.com/t5/Splunk-Search/table-for-two-dimentional-distribution/m-p/45909#M10956</link>
      <description>&lt;P&gt;Exactly what I was looking for - thanks. I have a hard time understanding the philosophy of the search syntax (but I will get over that one day :))&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2012 15:11:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/table-for-two-dimentional-distribution/m-p/45909#M10956</guid>
      <dc:creator>wsw70</dc:creator>
      <dc:date>2012-01-09T15:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: table for two dimentional distribution</title>
      <link>https://community.splunk.com/t5/Splunk-Search/table-for-two-dimentional-distribution/m-p/45910#M10957</link>
      <description>&lt;P&gt;Thank you. I cannot put two "best answers" but I upvoted yours &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2012 15:12:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/table-for-two-dimentional-distribution/m-p/45910#M10957</guid>
      <dc:creator>wsw70</dc:creator>
      <dc:date>2012-01-09T15:12:00Z</dc:date>
    </item>
  </channel>
</rss>

