<?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 to create a search that can Event count by Vendor/Product by Day for past 30days? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441728#M125469</link>
    <description>&lt;P&gt;ummm, okay well judging from the answer below you're looking for something like this :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metasearch index=*| timechart count by index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or simply like this if it's a count of events over time :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metasearch index=*| timechart count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 26 Jun 2019 09:42:46 GMT</pubDate>
    <dc:creator>DavidHourani</dc:creator>
    <dc:date>2019-06-26T09:42:46Z</dc:date>
    <item>
      <title>How to create a search that can Event count by Vendor/Product by Day for past 30days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441714#M125455</link>
      <description>&lt;P&gt;Hey All,&lt;/P&gt;

&lt;P&gt;I am trying to create an efficient search that I can schedule and run once a month to create some metrics.&lt;/P&gt;

&lt;P&gt;I would like to be able to get a number of events per vendor/product or sourcetype by day for the last 30 days. I was then hoping to use a sparkline to trend that data over those 30 days with each day being a point in that sparkline (or line chart).&lt;/P&gt;

&lt;P&gt;I have been looking at tstats but wasn't quite sure how to accomplish this goal as a couple of test searches weren't returning quite what I needed.  &lt;/P&gt;

&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 14:57:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441714#M125455</guid>
      <dc:creator>adalbor</dc:creator>
      <dc:date>2019-06-25T14:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search that can Event count by Vendor/Product by Day for past 30days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441715#M125456</link>
      <description>&lt;P&gt;Hi @adalbor, if you want to use &lt;CODE&gt;tstats&lt;/CODE&gt; for faster results make sure your data model includes the _time field and that its accelerated. Once that is done the rest should be easy, you can share your query with us and we can help you improve it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 15:17:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441715#M125456</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-06-25T15:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search that can Event count by Vendor/Product by Day for past 30days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441716#M125457</link>
      <description>&lt;P&gt;Hey @DavidHourani,&lt;BR /&gt;
I dont have a data model setup for this.  Is that something I should be doing?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 15:20:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441716#M125457</guid>
      <dc:creator>adalbor</dc:creator>
      <dc:date>2019-06-25T15:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search that can Event count by Vendor/Product by Day for past 30days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441717#M125458</link>
      <description>&lt;P&gt;If you want to use &lt;CODE&gt;tstats&lt;/CODE&gt; you will need to accelerate your data in a data model, yes. How were you using tstats without a DM to access non-indexed fields ? &lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 15:25:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441717#M125458</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-06-25T15:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search that can Event count by Vendor/Product by Day for past 30days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441718#M125459</link>
      <description>&lt;P&gt;I am not specifically trying to use tstats, I am more just trying to find the most efficient way to do this.&lt;BR /&gt;
I wasn't sure if tstats would do the job or not or a stats count.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 15:29:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441718#M125459</guid>
      <dc:creator>adalbor</dc:creator>
      <dc:date>2019-06-25T15:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search that can Event count by Vendor/Product by Day for past 30days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441719#M125460</link>
      <description>&lt;P&gt;Well &lt;CODE&gt;tstats&lt;/CODE&gt; runs on metadata directly so its the fastest, if you're looking for performance. &lt;/P&gt;

&lt;P&gt;You can also go for a summary index containing the values you need for your timechart that could be fast as well. &lt;/P&gt;

&lt;P&gt;In anycase you should avoid fetching all the data with &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=YourIndexName | stats yourStats
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Jun 2019 16:19:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441719#M125460</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-06-25T16:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search that can Event count by Vendor/Product by Day for past 30days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441720#M125461</link>
      <description>&lt;P&gt;Yeah thats why I was exploring other options and trying to figure out an advanced search like this as I am fairly new to Splunk world.  Piping to stats was slow and inefficient.  &lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 17:19:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441720#M125461</guid>
      <dc:creator>adalbor</dc:creator>
      <dc:date>2019-06-25T17:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search that can Event count by Vendor/Product by Day for past 30days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441721#M125462</link>
      <description>&lt;P&gt;Yeah, you really want to avoid that. Accelerared data models and summary indexing is the way to to when there's a lot of data to search &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Let me know if you need anything else ! And please accept the answer and upvote if it was helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 17:35:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441721#M125462</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-06-25T17:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search that can Event count by Vendor/Product by Day for past 30days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441722#M125463</link>
      <description>&lt;P&gt;Appreciate the help but I am still not sure where to start or how to accomplish.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 17:38:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441722#M125463</guid>
      <dc:creator>adalbor</dc:creator>
      <dc:date>2019-06-25T17:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search that can Event count by Vendor/Product by Day for past 30days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441723#M125464</link>
      <description>&lt;P&gt;Ahh, ok well. That's the easy part, you got everything in Splunk docs.&lt;BR /&gt;
&lt;STRONG&gt;Step 1:&lt;/STRONG&gt; create you data model and assign the right data to it. That can be found here :&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.0/Knowledge/Managedatamodels#Create_a_new_data_model"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.0/Knowledge/Managedatamodels#Create_a_new_data_model&lt;/A&gt;&lt;BR /&gt;
&lt;STRONG&gt;Step 2:&lt;/STRONG&gt; Accelerate the data model. That can be found here :&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.0/HadoopAnalytics/Configuredatamodelacceleration#Accelerate_the_data_model"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.0/HadoopAnalytics/Configuredatamodelacceleration#Accelerate_the_data_model&lt;/A&gt;&lt;BR /&gt;
&lt;STRONG&gt;Step 3:&lt;/STRONG&gt; query the accelerated data using &lt;CODE&gt;tstats&lt;/CODE&gt;. You can find that here :&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.0/Knowledge/Acceleratedatamodels#Using_the_summariesonly_argument"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.0/Knowledge/Acceleratedatamodels#Using_the_summariesonly_argument&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Let me know if you need more help with those steps. &lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
David&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 18:20:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441723#M125464</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-06-25T18:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search that can Event count by Vendor/Product by Day for past 30days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441724#M125465</link>
      <description>&lt;P&gt;Once again...thanks for the assistance but docs aren't what I need.  Guess Ill figure out on my own&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 18:25:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441724#M125465</guid>
      <dc:creator>adalbor</dc:creator>
      <dc:date>2019-06-25T18:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search that can Event count by Vendor/Product by Day for past 30days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441725#M125466</link>
      <description>&lt;P&gt;sourcetype=* &lt;BR /&gt;
|bucket _time span=day &lt;BR /&gt;
|stats count by _time&lt;/P&gt;

&lt;P&gt;This should work.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 19:09:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441725#M125466</guid>
      <dc:creator>sandeepmakkena</dc:creator>
      <dc:date>2019-06-25T19:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search that can Event count by Vendor/Product by Day for past 30days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441726#M125467</link>
      <description>&lt;P&gt;Does this include every index? The event counts looked pretty low when I ran that.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 20:29:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441726#M125467</guid>
      <dc:creator>adalbor</dc:creator>
      <dc:date>2019-06-25T20:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search that can Event count by Vendor/Product by Day for past 30days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441727#M125468</link>
      <description>&lt;P&gt;It should include every index. We are only filtering by source type.  Or if you think it’s not including you just say index=* and that query. &lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 02:07:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441727#M125468</guid>
      <dc:creator>sandeepmakkena</dc:creator>
      <dc:date>2019-06-26T02:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search that can Event count by Vendor/Product by Day for past 30days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441728#M125469</link>
      <description>&lt;P&gt;ummm, okay well judging from the answer below you're looking for something like this :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metasearch index=*| timechart count by index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or simply like this if it's a count of events over time :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metasearch index=*| timechart count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Jun 2019 09:42:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441728#M125469</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-06-26T09:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search that can Event count by Vendor/Product by Day for past 30days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441729#M125470</link>
      <description>&lt;P&gt;The first metasearch search worked pretty well.  Took a little while to run against 7 days of data but I will schedule the search for a low impact time prob overnight.&lt;/P&gt;

&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 14:36:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441729#M125470</guid>
      <dc:creator>adalbor</dc:creator>
      <dc:date>2019-06-26T14:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search that can Event count by Vendor/Product by Day for past 30days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441730#M125471</link>
      <description>&lt;P&gt;Did this work ?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 20:07:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-that-can-Event-count-by-Vendor-Product-by/m-p/441730#M125471</guid>
      <dc:creator>sandeepmakkena</dc:creator>
      <dc:date>2019-06-26T20:07:31Z</dc:date>
    </item>
  </channel>
</rss>

