<?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 find what commands in the search language are being used in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-find-what-commands-in-the-search-language-are-being-used/m-p/667607#M229034</link>
    <description>&lt;P&gt;Thank you, I am getting the result but unwanted fields are coming like jira, macro, filename. How to get rid of this from result&lt;/P&gt;</description>
    <pubDate>Mon, 06 Nov 2023 19:03:23 GMT</pubDate>
    <dc:creator>harishsplunk7</dc:creator>
    <dc:date>2023-11-06T19:03:23Z</dc:date>
    <item>
      <title>how to find what commands in the search language are being used</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-find-what-commands-in-the-search-language-are-being-used/m-p/667557#M229011</link>
      <description>&lt;P&gt;I want to list what commands in the search language are being used.&amp;nbsp;&amp;nbsp;I think its possible in the same _audit index and&amp;nbsp; I want to be able to do is count the number of times each command is used in search&lt;/P&gt;&lt;P&gt;Example :&amp;nbsp;&lt;/P&gt;&lt;P&gt;stats used 2 time&lt;/P&gt;&lt;P&gt;eval used 5 times&amp;nbsp;&lt;/P&gt;&lt;P&gt;rex used 7 time&lt;/P&gt;&lt;P&gt;timechart used 10 time&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 15:11:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-find-what-commands-in-the-search-language-are-being-used/m-p/667557#M229011</guid>
      <dc:creator>harishsplunk7</dc:creator>
      <dc:date>2023-11-06T15:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to find what commands in the search language are being used</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-find-what-commands-in-the-search-language-are-being-used/m-p/667562#M229015</link>
      <description>&lt;P&gt;You could start with something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_audit
| rex max_match=0 field=search "\|\s*(?&amp;lt;command&amp;gt;\w+)"
| stats count by command&lt;/LI-CODE&gt;&lt;P&gt;However, you may get some false results if pipes are used in the search where they are not delimiting commands. Also, you may find that macros hide the use of some commands.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 15:37:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-find-what-commands-in-the-search-language-are-being-used/m-p/667562#M229015</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-06T15:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to find what commands in the search language are being used</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-find-what-commands-in-the-search-language-are-being-used/m-p/667603#M229032</link>
      <description>&lt;P&gt;There is a REST endpoint, &lt;FONT face="courier new,courier"&gt;/services/search/v2/parser&lt;/FONT&gt;,&amp;nbsp; you may be able to use to parse queries into the commands used.&amp;nbsp; It requires the POST method so it will have to be used from a script (not from the UI).&amp;nbsp; See &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.1.1/RESTREF/RESTsearch#search.2Fv2.2Fparser" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.1.1/RESTREF/RESTsearch#search.2Fv2.2Fparser&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 18:02:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-find-what-commands-in-the-search-language-are-being-used/m-p/667603#M229032</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-11-06T18:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to find what commands in the search language are being used</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-find-what-commands-in-the-search-language-are-being-used/m-p/667607#M229034</link>
      <description>&lt;P&gt;Thank you, I am getting the result but unwanted fields are coming like jira, macro, filename. How to get rid of this from result&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 19:03:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-find-what-commands-in-the-search-language-are-being-used/m-p/667607#M229034</guid>
      <dc:creator>harishsplunk7</dc:creator>
      <dc:date>2023-11-06T19:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to find what commands in the search language are being used</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-find-what-commands-in-the-search-language-are-being-used/m-p/667622#M229041</link>
      <description>&lt;LI-CODE lang="markup"&gt;| where command!="jira" AND command!="macro" AND command!="filename"&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 Nov 2023 23:35:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-find-what-commands-in-the-search-language-are-being-used/m-p/667622#M229041</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-06T23:35:26Z</dc:date>
    </item>
  </channel>
</rss>

