<?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 search error messages in log file? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-error-messages-in-log-file/m-p/644989#M223365</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/257233"&gt;@akothapx&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;answering to your questions:&lt;/P&gt;&lt;P&gt;Is sub-search possible in Splunk?&lt;/P&gt;&lt;P&gt;Yes, is possible, beware only to one thing: the field names in main and sub search must be the same (field names are case sensitive).&lt;/P&gt;&lt;P&gt;Can we search the&amp;nbsp;&lt;SPAN&gt;result of a secondary or inner query as the input to the primary or outer question?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;yes, remember only that a sunsearch has the limit of 50,000 results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In addition, it's ab est practice to put the search terms as left as possible, so it isn't a good idea to user a main search and after use the search command as you did:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;source="sample_logcat.txt" host="debug" sourcetype="Android log" (iwlwifi OR Bluetooth)&lt;/LI-CODE&gt;&lt;P&gt;if you haven't experience in SPL, follow the Splunk Search Tutorial (&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchTutorial/WelcometotheSearchTutorial" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchTutorial/WelcometotheSearchTutorial&lt;/A&gt;) to understand how SPL works.&lt;/P&gt;&lt;P&gt;In addition there are many interesting videos in the YouTube Splunk Channel:&amp;nbsp;&lt;A href="https://www.youtube.com/@Splunkofficial" target="_blank"&gt;https://www.youtube.com/@Splunkofficial&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 May 2023 06:26:52 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-05-30T06:26:52Z</dc:date>
    <item>
      <title>How to search error messages in log file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-error-messages-in-log-file/m-p/644986#M223364</link>
      <description>&lt;P&gt;Hi, I am new to Splunk. How to search error messages in the log file using SPL.&lt;BR /&gt;I am using the below formats to search for error messages.&lt;BR /&gt;source="sample_logcat.txt" host="debug" sourcetype="Android log" | head 20&lt;BR /&gt;source="sample_logcat.txt" host="debug" sourcetype="Android log" | tail 4&lt;BR /&gt;error* AND * | search iwlwifi&lt;BR /&gt;error* AND * | search Bluetooth&lt;/P&gt;&lt;P&gt;Is sub-search possible in Splunk? Can we search the&amp;nbsp;&lt;SPAN&gt;result of a secondary or inner query as the input to the primary or outer question?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If possible can anyone explain in detail?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 05:15:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-error-messages-in-log-file/m-p/644986#M223364</guid>
      <dc:creator>akothapx</dc:creator>
      <dc:date>2023-05-30T05:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to search error messages in log file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-error-messages-in-log-file/m-p/644989#M223365</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/257233"&gt;@akothapx&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;answering to your questions:&lt;/P&gt;&lt;P&gt;Is sub-search possible in Splunk?&lt;/P&gt;&lt;P&gt;Yes, is possible, beware only to one thing: the field names in main and sub search must be the same (field names are case sensitive).&lt;/P&gt;&lt;P&gt;Can we search the&amp;nbsp;&lt;SPAN&gt;result of a secondary or inner query as the input to the primary or outer question?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;yes, remember only that a sunsearch has the limit of 50,000 results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In addition, it's ab est practice to put the search terms as left as possible, so it isn't a good idea to user a main search and after use the search command as you did:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;source="sample_logcat.txt" host="debug" sourcetype="Android log" (iwlwifi OR Bluetooth)&lt;/LI-CODE&gt;&lt;P&gt;if you haven't experience in SPL, follow the Splunk Search Tutorial (&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchTutorial/WelcometotheSearchTutorial" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchTutorial/WelcometotheSearchTutorial&lt;/A&gt;) to understand how SPL works.&lt;/P&gt;&lt;P&gt;In addition there are many interesting videos in the YouTube Splunk Channel:&amp;nbsp;&lt;A href="https://www.youtube.com/@Splunkofficial" target="_blank"&gt;https://www.youtube.com/@Splunkofficial&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 06:26:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-error-messages-in-log-file/m-p/644989#M223365</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-05-30T06:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to search error messages in log file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-error-messages-in-log-file/m-p/644995#M223368</link>
      <description>&lt;P&gt;Thanks for the response&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 06:45:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-error-messages-in-log-file/m-p/644995#M223368</guid>
      <dc:creator>akothapx</dc:creator>
      <dc:date>2023-05-30T06:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to search error messages in log file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-error-messages-in-log-file/m-p/644996#M223369</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/257233"&gt;@akothapx&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;if one answer solves your need, please accept one answer for the other people of Community or tell me how I can help you.&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 06:46:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-error-messages-in-log-file/m-p/644996#M223369</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-05-30T06:46:08Z</dc:date>
    </item>
  </channel>
</rss>

