<?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 How to extract all fields from my sample log and graph the average of the values? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-all-fields-from-my-sample-log-and-graph-the/m-p/233932#M69524</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Single log line:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{kpiMuleMS=12, kpiSecurityCheckMS=230, kpiGetQuoteMS=56, kpiGetLegalEntityMS=0, kpiOIILookupPersonaMS=0, kpiCreateSubscriptionMS=40, kpiGetOfferMS=0, kpiProcessSubscriptionMS=23, kpiPayAuthMS=9, kpiOIIFindRealmMS=1, kpiUpdateAccountMS=40, kpiGetAccountMS=10}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How do I graph the avg values of all the keys in a single graph?&lt;BR /&gt;
Unfortunately, I do not have the log line in the following format.. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;key=kpiSecurityCheckMS latency=230
key=kpiMuleMS latency=12
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 19 Aug 2016 23:26:08 GMT</pubDate>
    <dc:creator>karthikbits</dc:creator>
    <dc:date>2016-08-19T23:26:08Z</dc:date>
    <item>
      <title>How to extract all fields from my sample log and graph the average of the values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-all-fields-from-my-sample-log-and-graph-the/m-p/233932#M69524</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Single log line:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{kpiMuleMS=12, kpiSecurityCheckMS=230, kpiGetQuoteMS=56, kpiGetLegalEntityMS=0, kpiOIILookupPersonaMS=0, kpiCreateSubscriptionMS=40, kpiGetOfferMS=0, kpiProcessSubscriptionMS=23, kpiPayAuthMS=9, kpiOIIFindRealmMS=1, kpiUpdateAccountMS=40, kpiGetAccountMS=10}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How do I graph the avg values of all the keys in a single graph?&lt;BR /&gt;
Unfortunately, I do not have the log line in the following format.. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;key=kpiSecurityCheckMS latency=230
key=kpiMuleMS latency=12
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Aug 2016 23:26:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-all-fields-from-my-sample-log-and-graph-the/m-p/233932#M69524</guid>
      <dc:creator>karthikbits</dc:creator>
      <dc:date>2016-08-19T23:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract all fields from my sample log and graph the average of the values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-all-fields-from-my-sample-log-and-graph-the/m-p/233933#M69525</link>
      <description>&lt;P&gt;The kv or extract command would work well here.&lt;/P&gt;

&lt;P&gt;But, do you want an average of each kpi,&lt;BR /&gt;
or an average of all kpis?&lt;/P&gt;

&lt;P&gt;Try this for the former.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| kv pairdelim="=", kvdelim=","
| fields - _raw
| stats avg(*)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 20 Aug 2016 00:04:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-all-fields-from-my-sample-log-and-graph-the/m-p/233933#M69525</guid>
      <dc:creator>mhpark</dc:creator>
      <dc:date>2016-08-20T00:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract all fields from my sample log and graph the average of the values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-all-fields-from-my-sample-log-and-graph-the/m-p/233934#M69526</link>
      <description>&lt;P&gt;Try this (if the fields are already extracted, ignore the &lt;CODE&gt;extract&lt;/CODE&gt; segement)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search | extract pairdelim="," kvdelim="=" | stats avg(kpiMuleMS) as kpiMuleMS avg(kpiSecurityCheckMS) as kpiSecurityCheckMS &amp;lt;&amp;lt;similarly for rest of your fields
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 20 Aug 2016 00:15:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-all-fields-from-my-sample-log-and-graph-the/m-p/233934#M69526</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-20T00:15:37Z</dc:date>
    </item>
  </channel>
</rss>

