<?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 can I determine which fields will work with tstats? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-determine-which-fields-will-work-with-tstats/m-p/705091#M238785</link>
    <description>&lt;P&gt;Why would you do that if you have perfectly well working answers above? Also, this thread is several years old...&lt;/P&gt;</description>
    <pubDate>Fri, 22 Nov 2024 22:57:16 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2024-11-22T22:57:16Z</dc:date>
    <item>
      <title>How can I determine which fields will work with tstats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-determine-which-fields-will-work-with-tstats/m-p/392176#M114140</link>
      <description>&lt;P&gt;I understand that tstats will only work with indexed fields, not extracted fields.  How can I determine which fields are indexed?  For example, in my IIS logs, some entries have a "uid" field, others do not.  Tstats does not work with uid, so I assume it is not indexed. But I would like to be able to create a list.  Is there some way to determine which fields tstats will work for and which it will not?  &lt;/P&gt;

&lt;P&gt;Also, is there a way to add a field to the index (like by editing a .conf file?)?&lt;/P&gt;

&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 16:17:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-determine-which-fields-will-work-with-tstats/m-p/392176#M114140</guid>
      <dc:creator>campbellwarren</dc:creator>
      <dc:date>2019-01-04T16:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I determine which fields will work with tstats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-determine-which-fields-will-work-with-tstats/m-p/392177#M114141</link>
      <description>&lt;P&gt;For your first question, see this&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/339034/is-there-a-way-to-know-which-fields-were-extracted.html"&gt;https://answers.splunk.com/answers/339034/is-there-a-way-to-know-which-fields-were-extracted.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;To create indexed field, see this&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.3/Data/Configureindex-timefieldextraction"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.3/Data/Configureindex-timefieldextraction&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 16:38:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-determine-which-fields-will-work-with-tstats/m-p/392177#M114141</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-01-04T16:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I determine which fields will work with tstats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-determine-which-fields-will-work-with-tstats/m-p/392178#M114142</link>
      <description>&lt;P&gt;great answer by lowell in that first link, and definitely worth reading the indexed extractions docs through.&lt;/P&gt;

&lt;P&gt;The search syntax &lt;CODE&gt;field::value&lt;/CODE&gt; is a great quick check, but playing with &lt;CODE&gt;walklex&lt;/CODE&gt; is definitely worth the time,  and gets my vote, as it is the ultimate source of truth and will be a great trick to add to your Splunk Ninja arsenal!  &lt;/P&gt;

&lt;P&gt;More on it, and other cool debug tools here:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.3/Troubleshooting/CommandlinetoolsforusewithSupport#walklex"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.3/Troubleshooting/CommandlinetoolsforusewithSupport#walklex&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;also, for extra homework ;), check out @martin_mueller and his amazing talk on fields and tokens:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://conf.splunk.com/files/2017/recordings/fields-indexed-tokens-and-you.mp4"&gt;https://conf.splunk.com/files/2017/recordings/fields-indexed-tokens-and-you.mp4&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://conf.splunk.com/files/2017/slides/fields-indexed-tokens-and-you.pdf"&gt;https://conf.splunk.com/files/2017/slides/fields-indexed-tokens-and-you.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jan 2019 14:34:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-determine-which-fields-will-work-with-tstats/m-p/392178#M114142</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2019-01-05T14:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I determine which fields will work with tstats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-determine-which-fields-will-work-with-tstats/m-p/705065#M238779</link>
      <description>&lt;P&gt;You could find them by trial and error process.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| tstats values(&amp;lt;field1&amp;gt;) as &amp;lt;field1&amp;gt;
values(&amp;lt;field2&amp;gt;) as &amp;lt;field2&amp;gt;
values(&amp;lt;field3&amp;gt;) as &amp;lt;field3&amp;gt;
WHERE index=&amp;lt;index&amp;gt; sourcetype=&amp;lt;sourcetype&amp;gt; by sourcetype
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Fields that have data in the results means it is a useable field.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 21:21:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-determine-which-fields-will-work-with-tstats/m-p/705065#M238779</guid>
      <dc:creator>dkadavis</dc:creator>
      <dc:date>2024-11-22T21:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I determine which fields will work with tstats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-determine-which-fields-will-work-with-tstats/m-p/705091#M238785</link>
      <description>&lt;P&gt;Why would you do that if you have perfectly well working answers above? Also, this thread is several years old...&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 22:57:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-determine-which-fields-will-work-with-tstats/m-p/705091#M238785</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-11-22T22:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I determine which fields will work with tstats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-determine-which-fields-will-work-with-tstats/m-p/705155#M238803</link>
      <description>&lt;P&gt;Even though this thread is old, it's perhaps worth noting the ability to use TERM and PREFIX with tstats, which I believe was introduced in Splunk 8 at the end of 2019, which would not have been possible when this question was written.&lt;/P&gt;&lt;P&gt;&lt;A href="https://conf.splunk.com/files/2020/slides/PLA1089C.pdf" target="_blank"&gt;https://conf.splunk.com/files/2020/slides/PLA1089C.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 03:43:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-determine-which-fields-will-work-with-tstats/m-p/705155#M238803</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-11-25T03:43:58Z</dc:date>
    </item>
  </channel>
</rss>

