<?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 skip the part of Search Query based on a Condition in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-skip-the-part-of-Search-Query-based-on-a-Condition/m-p/530217#M149811</link>
    <description>&lt;P&gt;Hi&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;&lt;P&gt;Looks like good solution to my requirement. Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me on how to clear search tokens in a Dashboard with more than 2 panels and all are getting tokens from previous panels?&lt;/P&gt;&lt;P&gt;Example: There are 4 panels,&lt;/P&gt;&lt;P&gt;Panel2 gets tokens from Panel1. (click on Panel1)&lt;/P&gt;&lt;P&gt;Panel3 gets tokens from Panel2. (click on Panel2)&lt;/P&gt;&lt;P&gt;Panel4 gets tokens from Panel3. (click on Panel3)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If user clicks on panel1 row then I need to clear all the tokens on Panels 2,3,4 which are assigned previously.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Nov 2020 14:36:10 GMT</pubDate>
    <dc:creator>potnuru</dc:creator>
    <dc:date>2020-11-20T14:36:10Z</dc:date>
    <item>
      <title>How to skip the part of Search Query based on a Condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-skip-the-part-of-Search-Query-based-on-a-Condition/m-p/529873#M149687</link>
      <description>&lt;P&gt;My requirement is just to skip few lines of SPL query if a certain condition is met. Or some kind of If-Else for running the part of SPL.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Exact Requirement:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have two panels in my Dashboard. In First Panel, we have data for different tickets/sessions which will be passed to panel 2 on selection.&lt;/P&gt;&lt;P&gt;In Panel2, we have to validate certain parameters and if all ok then save the data to Splunk index (using&amp;nbsp;&lt;STRONG&gt;collect&lt;/STRONG&gt;&amp;nbsp;command) and show success message otherwise throw error message on to panel2.&lt;/P&gt;&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/201110"&gt;@niketn&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/15147"&gt;@somesoni2&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129407"&gt;@thambisetty&lt;/a&gt;, if you guys have any ideas, kindly share it with me.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 10:40:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-skip-the-part-of-Search-Query-based-on-a-Condition/m-p/529873#M149687</guid>
      <dc:creator>potnuru</dc:creator>
      <dc:date>2020-11-20T10:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute the part of Search Query based on a Condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-skip-the-part-of-Search-Query-based-on-a-Condition/m-p/529909#M149703</link>
      <description>&lt;P&gt;SPL is not a procedural language and does not support branching like that.&amp;nbsp; The conditional statements in SPL only control the assignment of values to fields.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 13:52:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-skip-the-part-of-Search-Query-based-on-a-Condition/m-p/529909#M149703</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-11-18T13:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute the part of Search Query based on a Condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-skip-the-part-of-Search-Query-based-on-a-Condition/m-p/530026#M149739</link>
      <description>&lt;P&gt;Hi &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;Thank you for your answer.&lt;/P&gt;&lt;P&gt;I know that my requirement is directly not possible as SPL is not&amp;nbsp;&lt;SPAN&gt;procedural language.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But are there any alternatives/ tricks, I mean indirect way to make it possible ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 06:02:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-skip-the-part-of-Search-Query-based-on-a-Condition/m-p/530026#M149739</guid>
      <dc:creator>potnuru</dc:creator>
      <dc:date>2020-11-19T06:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute the part of Search Query based on a Condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-skip-the-part-of-Search-Query-based-on-a-Condition/m-p/530081#M149767</link>
      <description>&lt;P&gt;If there was a general way to do so then I would have said so.&amp;nbsp; Whether or not there's a trick to accomplish your specific goal is impossible to say given the information provided.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 13:25:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-skip-the-part-of-Search-Query-based-on-a-Condition/m-p/530081#M149767</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-11-19T13:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute the part of Search Query based on a Condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-skip-the-part-of-Search-Query-based-on-a-Condition/m-p/530108#M149776</link>
      <description>&lt;P&gt;&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;My requirement is just to skip few lines of SPL query if a certain condition is met.&lt;/P&gt;&lt;P&gt;So is there any possibility to skip few lines or jump to a specific part of SPL based on condition ?&lt;/P&gt;&lt;P&gt;Exact Requirement:&lt;/P&gt;&lt;P&gt;I have two panels in my Dashboard. In First Panel, we have data for different tickets/sessions which will be passed to panel 2 on selection.&lt;/P&gt;&lt;P&gt;In Panel2, we have to validate certain parameters and if all ok then save the data to Splunk index (using&amp;nbsp;&lt;STRONG&gt;collect&lt;/STRONG&gt;&amp;nbsp;command) and show success message otherwise throw error message on to panel2.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 16:19:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-skip-the-part-of-Search-Query-based-on-a-Condition/m-p/530108#M149776</guid>
      <dc:creator>potnuru</dc:creator>
      <dc:date>2020-11-19T16:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute the part of Search Query based on a Condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-skip-the-part-of-Search-Query-based-on-a-Condition/m-p/530117#M149779</link>
      <description>&lt;P&gt;Splunk 8.1 has the new require command that can abort a query if zero results were found at that point.&amp;nbsp; I don't know if that helps.&amp;nbsp; I don't know of any other way to skip parts of a query.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 17:57:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-skip-the-part-of-Search-Query-based-on-a-Condition/m-p/530117#M149779</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-11-19T17:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to skip the part of Search Query based on a Condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-skip-the-part-of-Search-Query-based-on-a-Condition/m-p/530200#M149802</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/34483"&gt;@potnuru&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;probably you already solved the first part of the request: pass a token from the first panel to the second; if not see in Splunk Dashboard Examples (&lt;A href="https://splunkbase.splunk.com/app/1603/" target="_blank"&gt;https://splunkbase.splunk.com/app/1603/)&amp;nbsp;&lt;/A&gt;how to do this.&lt;/P&gt;&lt;P&gt;If your problem is to have a button that runs a collect command, you cannot do this with simple XML: you need a JS to run a search with the collect command from the dashboard.&lt;/P&gt;&lt;P&gt;It's not possible for me to help more becasue I'm not a JS developer, but you can find useful information at&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-button-to-run-SPL-on-click/m-p/350732" target="_blank"&gt;https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-button-to-run-SPL-on-click/m-p/350732&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 12:04:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-skip-the-part-of-Search-Query-based-on-a-Condition/m-p/530200#M149802</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-11-20T12:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to skip the part of Search Query based on a Condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-skip-the-part-of-Search-Query-based-on-a-Condition/m-p/530203#M149804</link>
      <description>&lt;P&gt;Hi&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;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;I don't need any Button. On selecting a row on Panel1, all the required tokens will be passed to Panel2.&lt;/P&gt;&lt;P&gt;My requirement is to validate the tokens on Panel2,.&lt;/P&gt;&lt;P&gt;1) if tokens values are passed the validation then I need to save the data to Splunk Index.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) if validation fails, then the data should not be saved on Splunk Index.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 12:30:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-skip-the-part-of-Search-Query-based-on-a-Condition/m-p/530203#M149804</guid>
      <dc:creator>potnuru</dc:creator>
      <dc:date>2020-11-20T12:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to skip the part of Search Query based on a Condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-skip-the-part-of-Search-Query-based-on-a-Condition/m-p/530204#M149805</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/34483"&gt;@potnuru&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;how do you think to validate the results?&lt;/P&gt;&lt;P&gt;the easiest way is a button.&lt;/P&gt;&lt;P&gt;Otherwise, you could create another drilldown in an hidden panel containing the collect command.&lt;/P&gt;&lt;P&gt;It isn't a clear way to work for the users: if OK click on a row if it isn't OK no click?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 12:34:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-skip-the-part-of-Search-Query-based-on-a-Condition/m-p/530204#M149805</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-11-20T12:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to skip the part of Search Query based on a Condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-skip-the-part-of-Search-Query-based-on-a-Condition/m-p/530205#M149806</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&amp;nbsp;if OK click on a row if it isn't OK no click?--&amp;gt; This won't work for me. Because every time user have to click on a row in Dashboard Panel1 and he could see the results in Panel2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Panel2 Output might be like this:&lt;/P&gt;&lt;P&gt;1) Data is validated successfully and saved to Index.&lt;/P&gt;&lt;P&gt;2) Data validation is failed.&lt;/P&gt;&lt;P&gt;Here validation is simple one, like if the tokens matches with certain parameters (Example: Ticket_Status="Approved")&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 12:42:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-skip-the-part-of-Search-Query-based-on-a-Condition/m-p/530205#M149806</guid>
      <dc:creator>potnuru</dc:creator>
      <dc:date>2020-11-20T12:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to skip the part of Search Query based on a Condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-skip-the-part-of-Search-Query-based-on-a-Condition/m-p/530213#M149810</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/34483"&gt;@potnuru&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;obviously my hint are two buttons: OK and Exit, the first confirm operation and runs the search with collect, the second one closes the dashboard or clean the search token.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 14:26:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-skip-the-part-of-Search-Query-based-on-a-Condition/m-p/530213#M149810</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-11-20T14:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to skip the part of Search Query based on a Condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-skip-the-part-of-Search-Query-based-on-a-Condition/m-p/530217#M149811</link>
      <description>&lt;P&gt;Hi&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;&lt;P&gt;Looks like good solution to my requirement. Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me on how to clear search tokens in a Dashboard with more than 2 panels and all are getting tokens from previous panels?&lt;/P&gt;&lt;P&gt;Example: There are 4 panels,&lt;/P&gt;&lt;P&gt;Panel2 gets tokens from Panel1. (click on Panel1)&lt;/P&gt;&lt;P&gt;Panel3 gets tokens from Panel2. (click on Panel2)&lt;/P&gt;&lt;P&gt;Panel4 gets tokens from Panel3. (click on Panel3)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If user clicks on panel1 row then I need to clear all the tokens on Panels 2,3,4 which are assigned previously.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 14:36:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-skip-the-part-of-Search-Query-based-on-a-Condition/m-p/530217#M149811</guid>
      <dc:creator>potnuru</dc:creator>
      <dc:date>2020-11-20T14:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to skip the part of Search Query based on a Condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-skip-the-part-of-Search-Query-based-on-a-Condition/m-p/530220#M149813</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/34483"&gt;@potnuru&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;see here to find how to reset tokens.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/Reusable-Script-Reset-All-Tokens-with-a-Single-Click/m-p/472141" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Getting-Data-In/Reusable-Script-Reset-All-Tokens-with-a-Single-Click/m-p/472141&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: if this answer solves your need, please accept it for the other people of Community and Karma Points are appreciated by all contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 14:41:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-skip-the-part-of-Search-Query-based-on-a-Condition/m-p/530220#M149813</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-11-20T14:41:24Z</dc:date>
    </item>
  </channel>
</rss>

