<?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 can I chart queries over time? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440480#M125254</link>
    <description>&lt;P&gt;Please share your current full search.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jun 2018 15:14:32 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2018-06-07T15:14:32Z</dc:date>
    <item>
      <title>How can I chart queries over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440470#M125244</link>
      <description>&lt;P&gt;I have a query that end with&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| table jra_conn bam_conn bib_conn
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;jra_conn, bam_conn, bib_conn&lt;/CODE&gt; are not Splunk fields. They are custom fields created using eval statements.&lt;/P&gt;

&lt;P&gt;Example : jra_conns have values like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;34
12
22
45
etc...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;I want to be able to chart these values over time (individually for all three *_conns .)&lt;/STRONG&gt;&lt;BR /&gt;
But &lt;CODE&gt;| timechart span=1m values(jra_conn)&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;
won't work for me.  I am thinking if I convert jra_conn to a multivalue field then may be timechart or something similar will work.&lt;BR /&gt;
Any suggestions?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 14:03:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440470#M125244</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2018-06-07T14:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I chart queries over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440471#M125245</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;how can you expect a timechart if the last line of the search is a table not containing _time?&lt;/P&gt;

&lt;P&gt;To me, it should end with&lt;BR /&gt;
    | table _time jra_conn bam_conn bib_conn&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:56:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440471#M125245</guid>
      <dc:creator>poete</dc:creator>
      <dc:date>2020-09-29T19:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I chart queries over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440472#M125246</link>
      <description>&lt;P&gt;I tried that. &lt;BR /&gt;
| table _time jra_conn&lt;BR /&gt;
still there won't come any visualization.&lt;BR /&gt;
added | timechart span=1m values(jra_conn) &lt;BR /&gt;
still no solution.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:51:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440472#M125246</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2020-09-29T19:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can I chart queries over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440473#M125247</link>
      <description>&lt;P&gt;It depends on what you are trying to chart.  If you want to see individual dots for each of the connection speeds at any given time, then use a scatterplot instead of a timechart.  If you want to see the average, then use timechart.  &lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 14:38:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440473#M125247</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-06-07T14:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I chart queries over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440474#M125248</link>
      <description>&lt;P&gt;Tried the following . Still I won't get a visualization&lt;BR /&gt;
| table _time jra_conn&lt;BR /&gt;
| stats values(jra_conn) by _time&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:51:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440474#M125248</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2020-09-29T19:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I chart queries over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440475#M125249</link>
      <description>&lt;P&gt;Thanks @DalJeanis ♦ for the suggestion.&lt;BR /&gt;
I think (not sure) the timechart or scatterplot works when when we deal with splunk fields. Mine are custom fields generated as a result of eval statements .&lt;BR /&gt;&lt;BR /&gt;
I tried all the plots, But the visualization won't generate. &lt;BR /&gt;
I think the fields(jra_conn etc.) needs to be converted to multivalued and then splitted or something similar before we make it work.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 14:44:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440475#M125249</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2018-06-07T14:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I chart queries over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440476#M125250</link>
      <description>&lt;P&gt;I suspect you want...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| table _time jra_conn bam_conn bib_conn
| timechart  span=1m avg(jra_conn) as jra_conn avg(bam_conn) as bam_conn avg(bib_conn) as bib_conn 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Jun 2018 14:46:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440476#M125250</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-06-07T14:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I chart queries over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440477#M125251</link>
      <description>&lt;P&gt;or you can use &lt;CODE&gt;max()&lt;/CODE&gt; or &lt;CODE&gt;min()&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 14:46:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440477#M125251</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-06-07T14:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I chart queries over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440478#M125252</link>
      <description>&lt;P&gt;tried it already. won't work.  &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 14:50:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440478#M125252</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2018-06-07T14:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I chart queries over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440479#M125253</link>
      <description>&lt;P&gt;Also when tried this&lt;BR /&gt;
| xyseries  _time jra_conn&lt;/P&gt;

&lt;P&gt;Error generates and says "Error in 'xyseries' command: At least one data field must be specified"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:51:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440479#M125253</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2020-09-29T19:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I chart queries over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440480#M125254</link>
      <description>&lt;P&gt;Please share your current full search.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 15:14:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440480#M125254</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-06-07T15:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I chart queries over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440481#M125255</link>
      <description>&lt;P&gt;| host="yelowpark.gamers.com" source="/apps/absan/jra/logs/access_log.data"&lt;BR /&gt;
| eval headers=split(_raw,";")&lt;BR /&gt;
| eval a=mvindex(headers,1)&lt;BR /&gt;
| eval b=mvindex(headers,2)&lt;BR /&gt;
| eval b_pipe=split(b,"|")&lt;BR /&gt;
| eval b1=mvindex(b_pipe,3)&lt;BR /&gt;
| eval b_colon=split(b1,":") | eval Total_Connection=mvindex(b_colon,1)&lt;/P&gt;

&lt;P&gt;| eval c=mvindex(headers,3)&lt;BR /&gt;
| eval c_pipe=split(c,"|")&lt;BR /&gt;
| eval c1=mvindex(c_pipe,1) | eval c1_colon=split(c1,":") | eval c_target=mvindex(c1_colon,1)&lt;BR /&gt;
| eval c2=mvindex(c_pipe,2) | eval c2_colon=split(c2,":") | eval c_status=mvindex(c2_colon,1)&lt;BR /&gt;
| eval c3=mvindex(c_pipe,3) | eval c3_colon=split(c3,":") | eval &lt;STRONG&gt;jra_conn&lt;/STRONG&gt;=mvindex(c3_colon,1)&lt;/P&gt;

&lt;P&gt;| eval d=mvindex(headers,4)&lt;BR /&gt;
| eval d_pipe=split(d,"|")&lt;BR /&gt;
| eval d1=mvindex(d_pipe,1) | eval d1_colon=split(d1,":") | eval d_target=mvindex(d1_colon,1)&lt;BR /&gt;
| eval d2=mvindex(d_pipe,2) | eval d2_colon=split(d2,":") | eval d_status=mvindex(d2_colon,1)&lt;BR /&gt;
| eval d3=mvindex(d_pipe,3) | eval d3_colon=split(d3,":") | eval &lt;STRONG&gt;bam_conn&lt;/STRONG&gt;=mvindex(d3_colon,1)&lt;/P&gt;

&lt;P&gt;| eval e=mvindex(headers,5)&lt;BR /&gt;
| eval e_pipe=split(e,"|")&lt;BR /&gt;
| eval e1=mvindex(e_pipe,1) | eval e1_colon=split(e1,":") | eval e_target=mvindex(e1_colon,1)&lt;BR /&gt;
| eval e2=mvindex(e_pipe,2) | eval e2_colon=split(e2,":") | eval e_status=mvindex(e2_colon,1)&lt;BR /&gt;
| eval e3=mvindex(e_pipe,3) | eval e3_colon=split(e3,":") | eval &lt;STRONG&gt;bib_conn&lt;/STRONG&gt;=mvindex(e3_colon,1)&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Sample event below:&lt;/STRONG&gt;&lt;BR /&gt;
Type: VIP Status | Target: /Common/lera.mayhem.com-80-int-llb | Status: The children pool member(s) either don't have service checking enabled, or service check results are not available yet | Current Conns: ;&lt;BR /&gt;
Type: VIP Status | Target: /Common/lera.mayhem.com-334-int-llb | Status: The virtual server is available | Current Conns: ;&lt;BR /&gt;
Type: Pool Status | Target: /Common/lera.mayhem.com-334-int-llb | Status: The pool is available | Current Conns: 9069;&lt;BR /&gt;
Type: Pool Member Status | Target: 20.239.118.200:8004 | Status: Forced down | Current Conns: 0;&lt;BR /&gt;
Type: Pool Member Status | Target: 20.239.128.245:8004 | Status: Pool member is available | Current Conns: 566;&lt;BR /&gt;
Type: Pool Member Status | Target: 20.239.189.243:8334 | Status: Pool member is available | Current Conns: 223;&lt;BR /&gt;
Type: Pool Member Status | Target: 20.239.289.44:8004 | Status: Pool member is available | Current Conns: 113;&lt;BR /&gt;
Type: Pool Member Status | Target: 20.239.209.11:8004 | Status: Pool member is available | Current Conns: 334;&lt;BR /&gt;
Type: Pool Member Status | Target: 20.239.209.22:8004 | Status: Pool member is available | Current Conns: 114;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:51:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440481#M125255</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2020-09-29T19:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I chart queries over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440482#M125256</link>
      <description>&lt;P&gt;Give this a try (simplified the custom field extraction)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="yelowpark.gamers.com" source="/apps/absan/jra/logs/access_log.data"
| eval headers=split(_raw,";") 
| table _time headers
| eval b=mvindex(headers,2)
| rex field=b "Current Conns: (?&amp;lt;Total_conn&amp;gt;.*)" 
| eval c=mvindex(headers,3)
| rex field=c "Current Conns: (?&amp;lt;jra_conn&amp;gt;.*)" 
| eval d=mvindex(headers,4)
| rex field=d "Current Conns: (?&amp;lt;bam_conn&amp;gt;.*)" 
| eval e=mvindex(headers,5)
| rex field=e "Current Conns: (?&amp;lt;bib_conn&amp;gt;.*)"  
| timechart avg(*_conn) as Avg_*_conn
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Jun 2018 16:37:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440482#M125256</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-06-07T16:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I chart queries over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440483#M125257</link>
      <description>&lt;P&gt;Absolutely brilliant @somesoni2 ♦&lt;BR /&gt;
Thank you very very much.&lt;BR /&gt;
You simplified the extraction and timechart works too.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 18:20:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-chart-queries-over-time/m-p/440483#M125257</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2018-06-07T18:20:33Z</dc:date>
    </item>
  </channel>
</rss>

