<?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 convert index query in to tstats in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-convert-index-query-in-to-tstats/m-p/591049#M13682</link>
    <description>&lt;P&gt;You can create a report and accelerate it so that splunk holds pre-computed summary and doesn't run the search across raw data every time you run the report.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.5/Report/Acceleratereports" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.5/Report/Acceleratereports&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Mar 2022 08:58:41 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2022-03-28T08:58:41Z</dc:date>
    <item>
      <title>How to convert index query in to tstats?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-convert-index-query-in-to-tstats/m-p/590988#M13672</link>
      <description>&lt;P&gt;How to convert below query where summarization status is unknown .&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| index="netsec_firewall" sourcetype="pan:traffic" action="allowed" app:technology="client-server" 

| stats first(start_time) AS start_time count by app user src_ip src_host dest_ip dest_host dest_port duration&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 28 Mar 2022 15:46:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-convert-index-query-in-to-tstats/m-p/590988#M13672</guid>
      <dc:creator>NDabhi21</dc:creator>
      <dc:date>2022-03-28T15:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert index query in to tstats</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-convert-index-query-in-to-tstats/m-p/590989#M13673</link>
      <description>&lt;P&gt;The query cannot be converted into a tstats query unless the action, app, user, src_ip, src_host, dest_ip, dest_host, dest_port, duration, and start_time fields are all indexed.&amp;nbsp; Do you know that they are?&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2022 14:04:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-convert-index-query-in-to-tstats/m-p/590989#M13673</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-03-27T14:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert index query in to tstats</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-convert-index-query-in-to-tstats/m-p/590990#M13674</link>
      <description>&lt;P&gt;Hi R&lt;SPAN&gt;ichgalloway,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick response.&lt;/P&gt;&lt;P&gt;Data has been indexed ,&amp;nbsp; Field mentioned in stats command are indexed and receiving data .&lt;/P&gt;&lt;P&gt;As its index query its failing for long time i.e last 24 hour .&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2022 14:14:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-convert-index-query-in-to-tstats/m-p/590990#M13674</guid>
      <dc:creator>NDabhi21</dc:creator>
      <dc:date>2022-03-27T14:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert index query in to tstats</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-convert-index-query-in-to-tstats/m-p/590997#M13675</link>
      <description>&lt;P&gt;It's not enough for data in the named fields to be in an index.&amp;nbsp; The field names themselves must be indexed.&amp;nbsp; IOW, the fields must be extracted at index time rather than at search time.&lt;/P&gt;&lt;P&gt;To determine if a field is available for use in &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt;, use this query.&amp;nbsp; Values shown in the term column can be used by &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt;.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| walklex index=foo | stats count by term&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2022 18:13:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-convert-index-query-in-to-tstats/m-p/590997#M13675</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-03-27T18:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert index query in to tstats</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-convert-index-query-in-to-tstats/m-p/591001#M13676</link>
      <description>&lt;P&gt;It's also worth adding that indexed fields are a special case and even though in specific cases they give search/stats performance boost they have their downsides and should be used sparringly.&lt;/P&gt;&lt;P&gt;There are other ways of acceleration that are worth considering (accelerated reports and datamodels).&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2022 21:34:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-convert-index-query-in-to-tstats/m-p/591001#M13676</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-03-27T21:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert index query in to tstats</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-convert-index-query-in-to-tstats/m-p/591023#M13677</link>
      <description>&lt;P&gt;I think the best option you have hear is to create data-model and use data-model acceleration and then we can help you write tstats query based on the data-model structure.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 06:03:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-convert-index-query-in-to-tstats/m-p/591023#M13677</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-03-28T06:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert index query in to tstats</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-convert-index-query-in-to-tstats/m-p/591034#M13678</link>
      <description>&lt;P&gt;Hi Vatsal,&lt;/P&gt;&lt;P&gt;Thanks for the your valuable response.&lt;/P&gt;&lt;P&gt;If possible could you please share best practice guide for create data model .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 07:47:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-convert-index-query-in-to-tstats/m-p/591034#M13678</guid>
      <dc:creator>NDabhi21</dc:creator>
      <dc:date>2022-03-28T07:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert index query in to tstats</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-convert-index-query-in-to-tstats/m-p/591036#M13679</link>
      <description>&lt;P&gt;With many kinds of data there are already datamodels defined in Common Information Model&lt;/P&gt;&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/1621/" target="_blank"&gt;https://splunkbase.splunk.com/app/1621/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The CIM model is heavily used and relied on in many places (especially in Enterprise Security and Security Essentials) so it's good to get to know it.&lt;/P&gt;&lt;P&gt;Many well-written addons provide CIM-compliance which means they do proper field aliasing and recalculations so you can easily add your indexes to CIM indexes.&lt;/P&gt;&lt;P&gt;The Palo Alto add-on seems to be CIM-compliant so it should be relatively easy to use it.&lt;/P&gt;&lt;P&gt;Now all you have to worry about is the acceleration period (there is of course always a trade-off between tstats-able period and disk usage)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 07:17:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-convert-index-query-in-to-tstats/m-p/591036#M13679</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-03-28T07:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert index query in to tstats</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-convert-index-query-in-to-tstats/m-p/591037#M13680</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957" target="_self"&gt;&lt;SPAN class=""&gt;richgalloway&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks for the your valuable response.&lt;/P&gt;&lt;P&gt;With this query no result .&lt;/P&gt;&lt;P&gt;Is any way accelerate normal index query or what change need avoid getting canceled .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 07:38:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-convert-index-query-in-to-tstats/m-p/591037#M13680</guid>
      <dc:creator>NDabhi21</dc:creator>
      <dc:date>2022-03-28T07:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert index query in to tstats</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-convert-index-query-in-to-tstats/m-p/591038#M13681</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884" target="_self"&gt;&lt;SPAN class=""&gt;PickleRick&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your update.&lt;/P&gt;&lt;P&gt;I will try above mentioned app and let you know the update .&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And Is&amp;nbsp; there any way accelerate normal index query or what change need to perform avoid index query&amp;nbsp;getting canceled?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 07:45:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-convert-index-query-in-to-tstats/m-p/591038#M13681</guid>
      <dc:creator>NDabhi21</dc:creator>
      <dc:date>2022-03-28T07:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert index query in to tstats</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-convert-index-query-in-to-tstats/m-p/591049#M13682</link>
      <description>&lt;P&gt;You can create a report and accelerate it so that splunk holds pre-computed summary and doesn't run the search across raw data every time you run the report.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.5/Report/Acceleratereports" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.5/Report/Acceleratereports&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 08:58:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-convert-index-query-in-to-tstats/m-p/591049#M13682</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-03-28T08:58:41Z</dc:date>
    </item>
  </channel>
</rss>

