<?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: Summary Index sistats not working with xyseries in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Summary-Index-sistats-not-working-with-xyseries/m-p/482148#M4298</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;index="myIndex" host="myHost" source="/var/logs/events.log" sourcetype="ss:vv:events" (MTHD="POST" OR MTHD="GET")
| rex field=U "(?P&amp;lt;ApiName&amp;gt;[^\/]+)(\/([a-zA-Z0-9]{32})|$)"
| stats count by ApiName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Check count and provide them here&lt;/P&gt;</description>
    <pubDate>Fri, 20 Mar 2020 10:40:25 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-03-20T10:40:25Z</dc:date>
    <item>
      <title>Summary Index sistats not working with xyseries</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Summary-Index-sistats-not-working-with-xyseries/m-p/482141#M4291</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I have Two Questions:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1st Questions:&lt;/STRONG&gt; Below is the query to generate stats that I want to push into Summary Index:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;index="myIndex" host="&lt;EM&gt;myHost&lt;/EM&gt;" source="/var/logs/events.log" sourcetype="ss:vv:events" (MTHD="POST" OR MTHD="GET")&lt;BR /&gt;| rex field=U "(?P[^\/]+)(\/([a-z0-9]{32})|$)"&lt;BR /&gt;| search (ApiName=abc OR ApiName=xyz)&lt;BR /&gt;| dedup CR,RE&lt;BR /&gt;| stats count as TotalReq by ApiName, Status&lt;BR /&gt;| xyseries ApiName Status, TotalReq&lt;BR /&gt;| addtotals labelfield=ApiName col=t label="ColTotals" fieldname="RowTotals"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;It gives me perfect result as:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ApiName | 200 | 400 | 404 | 500 | RowTotals&lt;/STRONG&gt;&lt;BR /&gt;abc | 12 | 2 | 4 | 1 | 19&lt;BR /&gt;xyz | 10 | 3 | 2 | 2 | 17&lt;BR /&gt;&lt;STRONG&gt;ColTotals&lt;/STRONG&gt; | 22 | 5 | 6 | 3 | 36&lt;/P&gt;
&lt;P&gt;But when I am changing &lt;STRONG&gt;stats&lt;/STRONG&gt; to &lt;STRONG&gt;sistats&lt;/STRONG&gt; to push into Summary Index, it is not producing any result, please help me with the query.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2nd Question:&lt;/STRONG&gt; I already have a Summary Index available and one stats report with different query is already been pushed everyday, which I have annotated using &lt;STRONG&gt;Add Fields&lt;/STRONG&gt; option in &lt;STRONG&gt;Edit Summary Index&lt;/STRONG&gt; window as &lt;STRONG&gt;report = firstReport&lt;/STRONG&gt;, now can I push another (above) report into same Summary Index with different annotation as &lt;STRONG&gt;report = secondReport&lt;/STRONG&gt;? will it work or I have to create another Summary Index for this report also, Please help.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jun 2020 17:14:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Summary-Index-sistats-not-working-with-xyseries/m-p/482141#M4291</guid>
      <dc:creator>ravimishrabglr</dc:creator>
      <dc:date>2020-06-06T17:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Index sistats not working with xyseries</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Summary-Index-sistats-not-working-with-xyseries/m-p/482142#M4292</link>
      <description>&lt;P&gt;1st: &lt;CODE&gt;| collect index=your_summary&lt;/CODE&gt;&lt;BR /&gt;
2nd: related your search&lt;BR /&gt;
&lt;CODE&gt;|eval report="firstReport" | collect index=your_summary&lt;/CODE&gt;&lt;BR /&gt;
 OR &lt;CODE&gt;|eval report="secondReport" | collect index=your_summary&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 00:54:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Summary-Index-sistats-not-working-with-xyseries/m-p/482142#M4292</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-05T00:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Index sistats not working with xyseries</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Summary-Index-sistats-not-working-with-xyseries/m-p/482143#M4293</link>
      <description>&lt;P&gt;@to4kawa 1st worked, able to push data in summary index. but while fetching it is not aggregating result. it is returning 2 time same api name and counts in 2 days search. running collect query daily in a scheduled report.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 08:30:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Summary-Index-sistats-not-working-with-xyseries/m-p/482143#M4293</guid>
      <dc:creator>ravimishrabglr</dc:creator>
      <dc:date>2020-03-06T08:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Index sistats not working with xyseries</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Summary-Index-sistats-not-working-with-xyseries/m-p/482144#M4294</link>
      <description>&lt;P&gt;2nd answer &lt;CODE&gt;|eval report="secondReport"&lt;/CODE&gt; is to next search.&lt;/P&gt;

&lt;P&gt;next search example:&lt;BR /&gt;
`index=your_summary report="secondReport" you_want&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:30:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Summary-Index-sistats-not-working-with-xyseries/m-p/482144#M4294</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-09-30T04:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Index sistats not working with xyseries</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Summary-Index-sistats-not-working-with-xyseries/m-p/482145#M4295</link>
      <description>&lt;P&gt;Thanks @to4kawa It worked but I ran into another strange problem, here is my query-&lt;/P&gt;

&lt;P&gt;index="myIndex" host="myHost" source="/var/logs/events.log" sourcetype="ss:vv:events" (MTHD="POST" OR MTHD="GET")&lt;BR /&gt;
| rex field=U "(?P[^\/]+)(\/([a-zA-Z0-9]{32})|$)"&lt;BR /&gt;
| where ApiName IN ("abc", "xyz")&lt;BR /&gt;
| dedup CR,RE&lt;BR /&gt;
| stats count as TotalReq by ApiName, Status &lt;BR /&gt;
| xyseries ApiName Status, TotalReq&lt;/P&gt;

&lt;P&gt;Now when I am using IN command in above query like this:&lt;BR /&gt;
| where ApiName IN ("abc") produce 10 events and &lt;BR /&gt;
| where ApiName IN ("xyz") produce 20 events but when using both ApiName together&lt;BR /&gt;
| where ApiName IN ("abc", "xyz") produce 25 events only, it should produce 30 right? where are 5 events?&lt;/P&gt;

&lt;P&gt;Please help me how to fix this problem. Plus CCing wonderful people who already helped me in other question: @richgalloway @gf13579 @vnravikumar &lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 17:19:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Summary-Index-sistats-not-working-with-xyseries/m-p/482145#M4295</guid>
      <dc:creator>ravimishrabglr</dc:creator>
      <dc:date>2020-03-19T17:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Index sistats not working with xyseries</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Summary-Index-sistats-not-working-with-xyseries/m-p/482146#M4296</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;sistats creates the summary index and doesn't output anything. It is an alternative to the collect suggested above. To report from the summaries, you need to use a stats. I have copied this from the documentation of the sistats command:&lt;/P&gt;

&lt;P&gt;Create a summary index with the statistics about the average, for each hour, of any unique field that ends with the string "lay". For example, delay, xdelay, relay, etc.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ... | sistats avg(*lay) BY date_hour
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To create a report, run a search against the summary index using this search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=summary | stats avg(*lay) BY date_hour
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope it helps&lt;BR /&gt;
Oliver&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 17:36:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Summary-Index-sistats-not-working-with-xyseries/m-p/482146#M4296</guid>
      <dc:creator>ololdach</dc:creator>
      <dc:date>2020-03-19T17:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Index sistats not working with xyseries</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Summary-Index-sistats-not-working-with-xyseries/m-p/482147#M4297</link>
      <description>&lt;P&gt;@ololdach Thanks for the answer, but i know that. my problem was when i was using sistats in above query, it was producing no data to push into summary index, but it should produce data with additional info columns prefixed with &lt;STRONG&gt;psrsvd&lt;/STRONG&gt;, when you run query with sistats it gives output and that output is kept in summary index so that we can query later.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 05:39:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Summary-Index-sistats-not-working-with-xyseries/m-p/482147#M4297</guid>
      <dc:creator>ravimishrabglr</dc:creator>
      <dc:date>2020-03-20T05:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Index sistats not working with xyseries</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Summary-Index-sistats-not-working-with-xyseries/m-p/482148#M4298</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index="myIndex" host="myHost" source="/var/logs/events.log" sourcetype="ss:vv:events" (MTHD="POST" OR MTHD="GET")
| rex field=U "(?P&amp;lt;ApiName&amp;gt;[^\/]+)(\/([a-zA-Z0-9]{32})|$)"
| stats count by ApiName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Check count and provide them here&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 10:40:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Summary-Index-sistats-not-working-with-xyseries/m-p/482148#M4298</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-20T10:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Index sistats not working with xyseries</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Summary-Index-sistats-not-working-with-xyseries/m-p/482149#M4299</link>
      <description>&lt;P&gt;In above, i provided count (10, 20) just for example, but below are real the count from old query and the new query that you provided.&lt;BR /&gt;
ApiName | oldQuery | newQuery&lt;BR /&gt;
 abc | 8258875 | 21781751&lt;BR /&gt;
 xyz | 74371 | 2283504&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 11:34:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Summary-Index-sistats-not-working-with-xyseries/m-p/482149#M4299</guid>
      <dc:creator>ravimishrabglr</dc:creator>
      <dc:date>2020-03-20T11:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Index sistats not working with xyseries</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Summary-Index-sistats-not-working-with-xyseries/m-p/482150#M4300</link>
      <description>&lt;P&gt;I don't know your oldQuery and newQuery.&lt;/P&gt;

&lt;P&gt;your question is &lt;CODE&gt;Summary Index sistats not working with xyseries&lt;/CODE&gt;&lt;BR /&gt;
Do you resolve this?&lt;/P&gt;

&lt;P&gt;If you have other issues, you should ask with &lt;STRONG&gt;another question&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 21:01:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Summary-Index-sistats-not-working-with-xyseries/m-p/482150#M4300</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-20T21:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Index sistats not working with xyseries</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Summary-Index-sistats-not-working-with-xyseries/m-p/482151#M4301</link>
      <description>&lt;P&gt;I see little reason to use &lt;CODE&gt;sistats&lt;/CODE&gt; most of the time because &lt;CODE&gt;prestats&lt;/CODE&gt; formatted data is difficult to read and near-impossible to debug; therefore I have never used it.  Instead, I always use &lt;CODE&gt;stats&lt;/CODE&gt;.  This just means that when you leverage the &lt;CODE&gt;summary index&lt;/CODE&gt; data, you have to know what you are doing and do it correctly, which is the case with normal events and &lt;CODE&gt;SPL&lt;/CODE&gt; so you already have the skills that you need.  So I suggest that you do it according to this document:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Configuresummaryindexes#Manually_configure_a_report_to_populate_a_summary_index"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Configuresummaryindexes#Manually_configure_a_report_to_populate_a_summary_index&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;As far as using multiple &lt;CODE&gt;populating searches&lt;/CODE&gt; to dump into a single &lt;CODE&gt;summary index&lt;/CODE&gt;, you should make that decision the same way that you would deciding whether to put multiple &lt;CODE&gt;sourcetypes&lt;/CODE&gt; into a regular &lt;CODE&gt;events index&lt;/CODE&gt;.  Just make sure that you use a different &lt;CODE&gt;report_name&lt;/CODE&gt; value (which is the equivalent of &lt;CODE&gt;sourcetype&lt;/CODE&gt; when doing &lt;CODE&gt;summary index&lt;/CODE&gt; because all data in a &lt;CODE&gt;summary index&lt;/CODE&gt; has a &lt;CODE&gt;sourcetype&lt;/CODE&gt; value of &lt;CODE&gt;stash&lt;/CODE&gt;).&lt;/P&gt;</description>
      <pubDate>Sat, 21 Mar 2020 20:43:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Summary-Index-sistats-not-working-with-xyseries/m-p/482151#M4301</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-03-21T20:43:10Z</dc:date>
    </item>
  </channel>
</rss>

