<?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: building search query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/building-search-query/m-p/556516#M158050</link>
    <description>&lt;P&gt;The base query (outside of a dashboard) is the part before the first pipe.&lt;/P&gt;&lt;P&gt;One does not need to memorize available fields, although that often comes from repeated use.&amp;nbsp; Instead, do your query building in Verbose Mode and consult the "Interesting fields" area to see what is available.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jun 2021 12:46:20 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-06-21T12:46:20Z</dc:date>
    <item>
      <title>building search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/building-search-query/m-p/556414#M158018</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I am just wondering if anyone can put me in the right direction - I have a question about search queries in Splunk. For example, in the below 2 simple query:&lt;/P&gt;&lt;P&gt;A. &lt;EM&gt;sourcetype="WinEventLog" EventCode=4688 &lt;FONT color="#0000FF"&gt;New_Process_Name&lt;/FONT&gt;="*powershell.exe" | stats count by New_Process_Name, &lt;FONT color="#0000FF"&gt;Process_Command_Line&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;B.&amp;nbsp;&lt;EM&gt;sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational” EventID=1 &lt;FONT color="#0000FF"&gt;Image&lt;/FONT&gt;=”*powershell.exe” | stats count by Image, &lt;FONT color="#0000FF"&gt;CommandLine&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;How do I know the following fields exists in that particular log?&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;1. New_Process_Name&lt;/P&gt;&lt;P&gt;2. Process_Command_Line&lt;/P&gt;&lt;P&gt;3. Image&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;Thanks guys!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jun 2021 12:56:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/building-search-query/m-p/556414#M158018</guid>
      <dc:creator>dilenthakuri</dc:creator>
      <dc:date>2021-06-20T12:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: building search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/building-search-query/m-p/556416#M158020</link>
      <description>&lt;P&gt;You know the New_Process_Name and Image fields exist because otherwise you will get no results from the base searches.&amp;nbsp; If Process_Command_Line does not exist then stats will return no results.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jun 2021 13:16:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/building-search-query/m-p/556416#M158020</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-06-20T13:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: building search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/building-search-query/m-p/556417#M158021</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;So "&lt;STRONG&gt;Base Searches"&lt;/STRONG&gt; you mean just run the below query first&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;sourcetype="WinEventLog" EventCode=4688&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;And then, look for the&lt;STRONG&gt; field&lt;/STRONG&gt; that can be appended to the search query further? Otherwise, it's not possible to remember or memorise ALL the field values while building the query. I see multiple of like below parameters set in the query:&lt;/P&gt;&lt;UL class="lia-list-style-type-square"&gt;&lt;LI&gt;Process_Command_Line&lt;/LI&gt;&lt;LI&gt;CommandLine&lt;/LI&gt;&lt;LI&gt;ParentCommandLine&lt;/LI&gt;&lt;LI&gt;Image&lt;/LI&gt;&lt;LI&gt;ParentImage&lt;/LI&gt;&lt;LI&gt;TargetFilename&lt;/LI&gt;&lt;LI&gt;User&lt;/LI&gt;&lt;/UL&gt;&lt;P class="p1"&gt;Or, we just have to know all of these by heart? What's the method you guys use to build complex queries?&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jun 2021 13:48:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/building-search-query/m-p/556417#M158021</guid>
      <dc:creator>dilenthakuri</dc:creator>
      <dc:date>2021-06-20T13:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: building search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/building-search-query/m-p/556516#M158050</link>
      <description>&lt;P&gt;The base query (outside of a dashboard) is the part before the first pipe.&lt;/P&gt;&lt;P&gt;One does not need to memorize available fields, although that often comes from repeated use.&amp;nbsp; Instead, do your query building in Verbose Mode and consult the "Interesting fields" area to see what is available.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 12:46:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/building-search-query/m-p/556516#M158050</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-06-21T12:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: building search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/building-search-query/m-p/556529#M158056</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;What do you mean by 'Outside of the Dashboard'? Sorry&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 14:19:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/building-search-query/m-p/556529#M158056</guid>
      <dc:creator>dilenthakuri</dc:creator>
      <dc:date>2021-06-21T14:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: building search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/building-search-query/m-p/556545#M158065</link>
      <description>&lt;P&gt;In a dashboard, the term "base search" has a different meaning.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 15:28:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/building-search-query/m-p/556545#M158065</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-06-21T15:28:28Z</dc:date>
    </item>
  </channel>
</rss>

