<?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: Conditional Searches in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-Conditional-Searches/m-p/596557#M207678</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/245530"&gt;@secphilomath&lt;/a&gt;&amp;nbsp;- Not sure what is your goal exactly but based on what you have described, you can try appendpipe command.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your-search&amp;gt;
| appendpipe [| search event_id=1 | mycommand1 ]
| appendpipe [| search event_id=2 | mycommand2 ]
&amp;lt;anything else&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!!&lt;/P&gt;</description>
    <pubDate>Thu, 05 May 2022 16:02:39 GMT</pubDate>
    <dc:creator>VatsalJagani</dc:creator>
    <dc:date>2022-05-05T16:02:39Z</dc:date>
    <item>
      <title>How to do Conditional Searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-Conditional-Searches/m-p/596438#M207641</link>
      <description>&lt;P&gt;Is there a way to do a search like this;&lt;/P&gt;
&lt;P&gt;If Eventid=1111&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; only do these&amp;nbsp; statements&lt;/P&gt;
&lt;P&gt;elseif Eventid=2222&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; only do these statements&lt;/P&gt;
&lt;P&gt;elseif eventid=3333&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;only do these statements&lt;/P&gt;
&lt;P&gt;Do these extra statements ...&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 16:24:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-Conditional-Searches/m-p/596438#M207641</guid>
      <dc:creator>secphilomath</dc:creator>
      <dc:date>2022-05-05T16:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-Conditional-Searches/m-p/596444#M207645</link>
      <description>&lt;P&gt;You can do if logic in eval statements, but there is no "if" block. It will depend on what you want to do in those conditions.&lt;/P&gt;&lt;P&gt;You can often achieve if type logic, can you give an example of the sort of actions you want to take.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 23:28:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-Conditional-Searches/m-p/596444#M207645</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-05-04T23:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-Conditional-Searches/m-p/596547#M207671</link>
      <description>&lt;P&gt;Essentially I want to run 3 different search commands depending on the value of the eventid.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 15:03:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-Conditional-Searches/m-p/596547#M207671</guid>
      <dc:creator>secphilomath</dc:creator>
      <dc:date>2022-05-05T15:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-Conditional-Searches/m-p/596557#M207678</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/245530"&gt;@secphilomath&lt;/a&gt;&amp;nbsp;- Not sure what is your goal exactly but based on what you have described, you can try appendpipe command.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your-search&amp;gt;
| appendpipe [| search event_id=1 | mycommand1 ]
| appendpipe [| search event_id=2 | mycommand2 ]
&amp;lt;anything else&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!!&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 16:02:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-Conditional-Searches/m-p/596557#M207678</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-05-05T16:02:39Z</dc:date>
    </item>
  </channel>
</rss>

