<?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 TSTATS with count zero and APPENDCOLS error in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/TSTATS-with-count-zero-and-APPENDCOLS-error/m-p/498930#M138987</link>
    <description>&lt;P&gt;Now i have a case:&lt;BR /&gt;
- count call API "XXX/authen" (not session) by src_ip (1)&lt;BR /&gt;
| tstats &lt;CODE&gt;summariesonly&lt;/CODE&gt; count from datamodel=rest.rest where rest.uri="XXX/authen" by rest.src&lt;BR /&gt;
- count session by src_ip (2)&lt;BR /&gt;
| tstats &lt;CODE&gt;summariesonly&lt;/CODE&gt; dc(rest.session) as dc_session from datamodel=rest.rest by rest.src&lt;/P&gt;

&lt;P&gt;I use stats with appendcols + subsearch then OK,&lt;/P&gt;

&lt;P&gt;index=XXX&lt;BR /&gt;
| stats count(eval(uri="XXX/authen")) as count_uri by src&lt;BR /&gt;
| appendcols&lt;BR /&gt;
    [search index=XXX &lt;BR /&gt;
    | stats dc(session) as dc_session by src&lt;BR /&gt;
    ]&lt;/P&gt;

&lt;P&gt;but use TSTATS fast, then error.&lt;BR /&gt;
| tstats &lt;CODE&gt;summariesonly&lt;/CODE&gt; count from datamodel=rest.rest where rest.uri="XXX/authen" by rest.src&lt;BR /&gt;
| appendcols&lt;BR /&gt;
    [| tstats &lt;CODE&gt;summariesonly&lt;/CODE&gt; dc(rest.session) as dc_session from datamodel=rest.rest by rest.src&lt;BR /&gt;
    ]&lt;/P&gt;

&lt;P&gt;Because TSTAST don't show src_ip have count zero then result of (1) , (2) are diffirent.&lt;/P&gt;

&lt;P&gt;Please help me!&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 02:29:59 GMT</pubDate>
    <dc:creator>longnh26</dc:creator>
    <dc:date>2020-09-30T02:29:59Z</dc:date>
    <item>
      <title>TSTATS with count zero and APPENDCOLS error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/TSTATS-with-count-zero-and-APPENDCOLS-error/m-p/498930#M138987</link>
      <description>&lt;P&gt;Now i have a case:&lt;BR /&gt;
- count call API "XXX/authen" (not session) by src_ip (1)&lt;BR /&gt;
| tstats &lt;CODE&gt;summariesonly&lt;/CODE&gt; count from datamodel=rest.rest where rest.uri="XXX/authen" by rest.src&lt;BR /&gt;
- count session by src_ip (2)&lt;BR /&gt;
| tstats &lt;CODE&gt;summariesonly&lt;/CODE&gt; dc(rest.session) as dc_session from datamodel=rest.rest by rest.src&lt;/P&gt;

&lt;P&gt;I use stats with appendcols + subsearch then OK,&lt;/P&gt;

&lt;P&gt;index=XXX&lt;BR /&gt;
| stats count(eval(uri="XXX/authen")) as count_uri by src&lt;BR /&gt;
| appendcols&lt;BR /&gt;
    [search index=XXX &lt;BR /&gt;
    | stats dc(session) as dc_session by src&lt;BR /&gt;
    ]&lt;/P&gt;

&lt;P&gt;but use TSTATS fast, then error.&lt;BR /&gt;
| tstats &lt;CODE&gt;summariesonly&lt;/CODE&gt; count from datamodel=rest.rest where rest.uri="XXX/authen" by rest.src&lt;BR /&gt;
| appendcols&lt;BR /&gt;
    [| tstats &lt;CODE&gt;summariesonly&lt;/CODE&gt; dc(rest.session) as dc_session from datamodel=rest.rest by rest.src&lt;BR /&gt;
    ]&lt;/P&gt;

&lt;P&gt;Because TSTAST don't show src_ip have count zero then result of (1) , (2) are diffirent.&lt;/P&gt;

&lt;P&gt;Please help me!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:29:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/TSTATS-with-count-zero-and-APPENDCOLS-error/m-p/498930#M138987</guid>
      <dc:creator>longnh26</dc:creator>
      <dc:date>2020-09-30T02:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: TSTATS with count zero and APPENDCOLS error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/TSTATS-with-count-zero-and-APPENDCOLS-error/m-p/498931#M138988</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Anyone admin help me ??&lt;/STRONG&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 04:02:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/TSTATS-with-count-zero-and-APPENDCOLS-error/m-p/498931#M138988</guid>
      <dc:creator>longnh26</dc:creator>
      <dc:date>2019-10-09T04:02:17Z</dc:date>
    </item>
  </channel>
</rss>

