<?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: Splunk 6.3 - Correlate data from multidimensional JSON-encoded events in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-6-3-Correlate-data-from-multidimensional-JSON-encoded/m-p/263505#M3308</link>
    <description>&lt;P&gt;That gives no statistics results at all. Sorry to be so unhelpful with my reply but I'm not understanding how the search string is intended to work.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Oct 2015 20:49:48 GMT</pubDate>
    <dc:creator>edgenuity</dc:creator>
    <dc:date>2015-10-12T20:49:48Z</dc:date>
    <item>
      <title>Splunk 6.3 - Correlate data from multidimensional JSON-encoded events</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-6-3-Correlate-data-from-multidimensional-JSON-encoded/m-p/263503#M3306</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;We have an index populated with MTR (mytraceroute) data from remote hosts. We are looking for a way to parse this information and present a visualization (or at least a table) showing network hops, the number of times they show up in the data, and the average packet loss for each hop.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{
    "status": "success",
    "hops": [
        {
            "host": "192.168.1.1",
            "loss": "0.0%",
            "avg": "0.3"
        },
        {
            "host": "network-hop-1",
            "loss": "0.0%",
            "avg": "33.2"
        },
        {
            "host": "network-hop-2",
            "loss": "0.0%",
            "avg": "23.2"
        },
        {
            "host": "network-hop-3",
            "loss": "0.0%",
            "avg": "23.6"
        },
        {
            "host": "network-hop-4",
            "loss": "40.0%",
            "avg": "25.3"
        },
        {
            "host": "network-hop-5",
            "loss": "0.0%",
            "avg": "25.2"
        },
        {
            "host": "network-hop-6",
            "loss": "0.0%",
            "avg": "25.5"
        }
    ],
    "totalhops": "7",
    "appliance": "HOSTNAME"
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;We need a table that shows --&lt;/P&gt;

&lt;P&gt;hop, [number of events containing this hop], [average loss % to this hop across all events containing it], [average time (avg) to this hop]&lt;/P&gt;

&lt;P&gt;Any idea how to do this?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 18:37:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-6-3-Correlate-data-from-multidimensional-JSON-encoded/m-p/263503#M3306</guid>
      <dc:creator>edgenuity</dc:creator>
      <dc:date>2015-10-09T18:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk 6.3 - Correlate data from multidimensional JSON-encoded events</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-6-3-Correlate-data-from-multidimensional-JSON-encoded/m-p/263504#M3307</link>
      <description>&lt;P&gt;Assuming this json format data is properly parsed by Splunk (props.conf is setup correctly to extract fields), then try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | table host{}* | rename host{}.* as * | eval temp=mvzip(host,mvzip(loss,avg,"#"),"#") | table temp | mvexpand temp | rex field=temp "(?&amp;lt;hop&amp;gt;.*)#(?&amp;lt;loss&amp;gt;.*)%#(?&amp;lt;time&amp;gt;.*)" | stats count, avg(loss) as Avg_Loss_% avg(time) as Avg_Time by hop
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Oct 2015 19:46:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-6-3-Correlate-data-from-multidimensional-JSON-encoded/m-p/263504#M3307</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-10-09T19:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk 6.3 - Correlate data from multidimensional JSON-encoded events</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-6-3-Correlate-data-from-multidimensional-JSON-encoded/m-p/263505#M3308</link>
      <description>&lt;P&gt;That gives no statistics results at all. Sorry to be so unhelpful with my reply but I'm not understanding how the search string is intended to work.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2015 20:49:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-6-3-Correlate-data-from-multidimensional-JSON-encoded/m-p/263505#M3308</guid>
      <dc:creator>edgenuity</dc:creator>
      <dc:date>2015-10-12T20:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk 6.3 - Correlate data from multidimensional JSON-encoded events</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-6-3-Correlate-data-from-multidimensional-JSON-encoded/m-p/263506#M3309</link>
      <description>&lt;P&gt;Thank you, there was one minor mistake (should be ' table hops{}* | rename hops{}.* as * ' ... but otherwise this is perfect. Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2015 20:54:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-6-3-Correlate-data-from-multidimensional-JSON-encoded/m-p/263506#M3309</guid>
      <dc:creator>edgenuity</dc:creator>
      <dc:date>2015-10-12T20:54:07Z</dc:date>
    </item>
  </channel>
</rss>

