<?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 From the following log data, how do I create a table that includes the average response time? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/From-the-following-log-data-how-do-I-create-a-table-that/m-p/436598#M124413</link>
    <description>&lt;P&gt;My log Data is in this format:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;response="{"status":"success","Registries":[{"create":"2018-08-28","last":null,"Story":null}]}" response_Time="4"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When i try to create a table with response and response time, I get {  for response and response time as blank&lt;/P&gt;

&lt;P&gt;When i try to get the average of response time, i get nothing. &lt;/P&gt;

&lt;P&gt;Can anyone help me with queries to get full JSON data in table and average response time.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Dec 2018 17:16:05 GMT</pubDate>
    <dc:creator>pvrk007</dc:creator>
    <dc:date>2018-12-13T17:16:05Z</dc:date>
    <item>
      <title>From the following log data, how do I create a table that includes the average response time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/From-the-following-log-data-how-do-I-create-a-table-that/m-p/436598#M124413</link>
      <description>&lt;P&gt;My log Data is in this format:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;response="{"status":"success","Registries":[{"create":"2018-08-28","last":null,"Story":null}]}" response_Time="4"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When i try to create a table with response and response time, I get {  for response and response time as blank&lt;/P&gt;

&lt;P&gt;When i try to get the average of response time, i get nothing. &lt;/P&gt;

&lt;P&gt;Can anyone help me with queries to get full JSON data in table and average response time.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 17:16:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/From-the-following-log-data-how-do-I-create-a-table-that/m-p/436598#M124413</guid>
      <dc:creator>pvrk007</dc:creator>
      <dc:date>2018-12-13T17:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: From the following log data, how do I create a table that includes the average response time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/From-the-following-log-data-how-do-I-create-a-table-that/m-p/436599#M124414</link>
      <description>&lt;P&gt;Do you need &lt;CODE&gt;average response time&lt;/CODE&gt; by a field in the events or average of all response times in entire data set ? because if you ultimately require &lt;CODE&gt;table&lt;/CODE&gt; of &lt;CODE&gt;raw data(json)&lt;/CODE&gt; and &lt;CODE&gt;average response time&lt;/CODE&gt; then it should be by some field in your events. &lt;/P&gt;

&lt;P&gt;You can do like this :&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;your base search | rex  "response_Time\=\"(?&amp;lt;response_time&amp;gt;\d+)\"" | table _raw response_time | eventstats avg(response_time) as average&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;You can add any field after the &lt;CODE&gt;by&lt;/CODE&gt; clause.  Let me know if it works, i can help further.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 05:18:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/From-the-following-log-data-how-do-I-create-a-table-that/m-p/436599#M124414</guid>
      <dc:creator>macadminrohit</dc:creator>
      <dc:date>2018-12-14T05:18:17Z</dc:date>
    </item>
  </channel>
</rss>

