<?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: Timechart or stats or lastTime in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-or-stats-or-lastTime/m-p/94882#M24517</link>
    <description>&lt;P&gt;The number of calls IS the same as number of events.&lt;/P&gt;

&lt;P&gt;I want to graph is by time and then orgName&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jul 2012 18:31:21 GMT</pubDate>
    <dc:creator>asarolkar</dc:creator>
    <dc:date>2012-07-10T18:31:21Z</dc:date>
    <item>
      <title>Timechart or stats or lastTime</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-or-stats-or-lastTime/m-p/94880#M24515</link>
      <description>&lt;P&gt;When I execute this search, I get all events from organization : Barclays that contains records for 2012. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="log" | search orgName="org\\barclays" | search "*2012*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, i want to do two things:&lt;/P&gt;

&lt;P&gt;i) graph the number of calls made into a report &lt;BR /&gt;
ii) find the timestamp for the last event.&lt;/P&gt;

&lt;P&gt;I want to be able to do both without using report builder.&lt;/P&gt;

&lt;P&gt;Any pointers on how to proceed with this ? &lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2012 17:59:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-or-stats-or-lastTime/m-p/94880#M24515</guid>
      <dc:creator>asarolkar</dc:creator>
      <dc:date>2012-07-10T17:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart or stats or lastTime</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-or-stats-or-lastTime/m-p/94881#M24516</link>
      <description>&lt;P&gt;First of all, you don't need to split that up into multiple searches. Rather you'll get worse performance if you do that compared to if use one single search instead.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="log" orgName="org\\barclays" "*2012*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regarding your questions, you need to clarify i) a bit more. How do you count the number of calls? Is that the same as the number of events? Also how do you want to graph it? Over time, split by host, ...&lt;/P&gt;

&lt;P&gt;ii)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="log" orgName="org\\barclays" "*2012*" | stats first(_time)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;UPDATE: As for i):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="log" orgName="org\\barclays" "*2012*" | timechart count by orgName
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Jul 2012 18:11:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-or-stats-or-lastTime/m-p/94881#M24516</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-07-10T18:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart or stats or lastTime</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-or-stats-or-lastTime/m-p/94882#M24517</link>
      <description>&lt;P&gt;The number of calls IS the same as number of events.&lt;/P&gt;

&lt;P&gt;I want to graph is by time and then orgName&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2012 18:31:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-or-stats-or-lastTime/m-p/94882#M24517</guid>
      <dc:creator>asarolkar</dc:creator>
      <dc:date>2012-07-10T18:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart or stats or lastTime</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-or-stats-or-lastTime/m-p/94883#M24518</link>
      <description>&lt;P&gt;Guys: i want to simply chart the events over time without using the Report builder. Any ideas on how to go about it ? &lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2012 18:34:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-or-stats-or-lastTime/m-p/94883#M24518</guid>
      <dc:creator>asarolkar</dc:creator>
      <dc:date>2012-07-10T18:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart or stats or lastTime</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-or-stats-or-lastTime/m-p/94884#M24519</link>
      <description>&lt;P&gt;Updated my answer.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2012 18:34:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-or-stats-or-lastTime/m-p/94884#M24519</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-07-10T18:34:53Z</dc:date>
    </item>
  </channel>
</rss>

