<?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: Count the number of api occurrence in 10 second in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Count-the-number-of-api-occurrence-in-10-second/m-p/486619#M193701</link>
    <description>&lt;P&gt;@techiesid this work fine without &lt;CODE&gt;timechart count span=10s&lt;/CODE&gt;, when I use this no result is coming&lt;/P&gt;</description>
    <pubDate>Fri, 27 Sep 2019 09:13:43 GMT</pubDate>
    <dc:creator>JyotiP</dc:creator>
    <dc:date>2019-09-27T09:13:43Z</dc:date>
    <item>
      <title>Count the number of api occurrence in 10 second</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-the-number-of-api-occurrence-in-10-second/m-p/486617#M193699</link>
      <description>&lt;P&gt;I have the following API's, for which I need to count the occurrence of each in every 10 seconds for 1 hour time interval.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/api/login/v1/session
/api/data/v1/graphql
/api/order/v1/orders
/api/order/v1/states
/api/order/orderimporter/v1/importcsv
/api/order/orderimporter/v1/promote
/api/order/orderimporter/v1/stagingOrder
/api/order/v3/graphql
/api/order/desk/v2/quickSend
/api/order/v1/desk/Batch/sync
/api/order/v1/Orders/sync
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried with  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=*localhost* Path=*** sourcetype=nginx 
| where Path in ("/api/platform/v1/session" OR "/api/coredata/v1/graphql" OR "/api/trading/v1/orders")
| table Path
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But getting &lt;CODE&gt;Error in 'where' command: Typechecking failed. 'OR' only takes boolean arguments&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Basically I want the count of all the listed api in every 10 seconds for 1-hour interval.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 08:40:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-the-number-of-api-occurrence-in-10-second/m-p/486617#M193699</guid>
      <dc:creator>JyotiP</dc:creator>
      <dc:date>2019-09-27T08:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Count the number of api occurrence in 10 second</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-the-number-of-api-occurrence-in-10-second/m-p/486618#M193700</link>
      <description>&lt;P&gt;It should be smething like below,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=*localhost* Path=*** sourcetype=nginx 
 | search Path IN  ("/api/platform/v1/session" ,"/api/coredata/v1/graphql" , "/api/trading/v1/orders")
 | table Path
| timechart count span=10s
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sid&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 08:46:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-the-number-of-api-occurrence-in-10-second/m-p/486618#M193700</guid>
      <dc:creator>techiesid</dc:creator>
      <dc:date>2019-09-27T08:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count the number of api occurrence in 10 second</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-the-number-of-api-occurrence-in-10-second/m-p/486619#M193701</link>
      <description>&lt;P&gt;@techiesid this work fine without &lt;CODE&gt;timechart count span=10s&lt;/CODE&gt;, when I use this no result is coming&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 09:13:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-the-number-of-api-occurrence-in-10-second/m-p/486619#M193701</guid>
      <dc:creator>JyotiP</dc:creator>
      <dc:date>2019-09-27T09:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Count the number of api occurrence in 10 second</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-the-number-of-api-occurrence-in-10-second/m-p/486620#M193702</link>
      <description>&lt;P&gt;Here is an example from some different data:&lt;/P&gt;

&lt;P&gt;sourcetype=access_combined earliest=-60m &lt;BR /&gt;
| bin _time span=10s &lt;BR /&gt;
| timechart count by action&lt;/P&gt;

&lt;P&gt;You might consider using  Trellis visualization as well, which automatically creates a different line graph for each.&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7713iADF743DE2176142D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 12:36:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-the-number-of-api-occurrence-in-10-second/m-p/486620#M193702</guid>
      <dc:creator>kmorris_splunk</dc:creator>
      <dc:date>2019-09-27T12:36:44Z</dc:date>
    </item>
  </channel>
</rss>

