<?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 Convert normal search to tstats? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Convert-normal-search-to-tstats/m-p/620858#M215812</link>
    <description>&lt;P&gt;Dears,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We need your support to convert below search to tstats search.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;(index=os_windows OR index=workstation*) tag=authentication user!=*$ action=success EventCode=4624 Logon_Type=10 OR Logon_Type=2 user=admin OR user=administrator OR user=Paradmin OR
user=symadmin | table _time index user Source_Network_Address Workstation_Name action Logon_Type | dedup user Workstation_Name&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please your support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2022 13:54:14 GMT</pubDate>
    <dc:creator>Abdullah</dc:creator>
    <dc:date>2022-11-15T13:54:14Z</dc:date>
    <item>
      <title>Convert normal search to tstats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-normal-search-to-tstats/m-p/620858#M215812</link>
      <description>&lt;P&gt;Dears,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We need your support to convert below search to tstats search.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;(index=os_windows OR index=workstation*) tag=authentication user!=*$ action=success EventCode=4624 Logon_Type=10 OR Logon_Type=2 user=admin OR user=administrator OR user=Paradmin OR
user=symadmin | table _time index user Source_Network_Address Workstation_Name action Logon_Type | dedup user Workstation_Name&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please your support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 13:54:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-normal-search-to-tstats/m-p/620858#M215812</guid>
      <dc:creator>Abdullah</dc:creator>
      <dc:date>2022-11-15T13:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Convert normal search to tstats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-normal-search-to-tstats/m-p/620904#M215832</link>
      <description>&lt;P&gt;What have you tried so far?&lt;/P&gt;&lt;P&gt;The current query has no &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt; command so there is no equivalent &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt; query.&amp;nbsp; Furthermore, the query appears to use fields that typically are not indexed (like EventCode), which makes &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt; queries impossible.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 14:00:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-normal-search-to-tstats/m-p/620904#M215832</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-11-15T14:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Convert normal search to tstats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-normal-search-to-tstats/m-p/621038#M215875</link>
      <description>&lt;P&gt;Hi R&lt;SPAN&gt;ichgalloway,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply, but I think you can create new regular expression and create new field for the data model by editing the data model, then we can use this field.&lt;/P&gt;&lt;P&gt;Regads,&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 11:34:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-normal-search-to-tstats/m-p/621038#M215875</guid>
      <dc:creator>Abdullah</dc:creator>
      <dc:date>2022-11-16T11:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Convert normal search to tstats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-normal-search-to-tstats/m-p/621069#M215895</link>
      <description>&lt;P&gt;Yes, you can modify the data model to include other fields, but I advise against it.&amp;nbsp; Once you modify a data model you own it.&amp;nbsp; Any changes published by Splunk will not be available because your local change will override that delivered with the app.&amp;nbsp; It's better to aliases and/or tags to have the desired field appear in the existing model.&lt;/P&gt;&lt;P&gt;Having the field in an index is only part of the problem.&amp;nbsp; The non-tstats query does not compute any stats so there is no equivalent in &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 14:35:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-normal-search-to-tstats/m-p/621069#M215895</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-11-16T14:35:15Z</dc:date>
    </item>
  </channel>
</rss>

