<?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: Splunk Query Fails When I use '/' in Query in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-Fails-When-I-use-in-Query/m-p/290273#M55385</link>
    <description>&lt;P&gt;Hi pramit46,&lt;BR /&gt;
Use brackets&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="idx" sourcetype="st" host="host" Port="1/0/23"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;otherwise use regex command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| regex "1\/0\/23"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 20 Nov 2017 09:38:46 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2017-11-20T09:38:46Z</dc:date>
    <item>
      <title>Splunk Query Fails When I use '/' in Query</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-Fails-When-I-use-in-Query/m-p/290271#M55383</link>
      <description>&lt;P&gt;I have a query as follows:&lt;BR /&gt;
index="idx" sourcetype="st" host="host" |search Port=1/0/23&lt;/P&gt;

&lt;P&gt;It shows "No Results Found"&lt;/P&gt;

&lt;P&gt;But I know there are more than 1 events available for the Port 1/0/23. which show up when I remove the "search filter" part and run it in verbose mode. &lt;BR /&gt;
I think it is ignoring the value due to that '/'&lt;BR /&gt;
Any idea how to handle this? &lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 09:13:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-Fails-When-I-use-in-Query/m-p/290271#M55383</guid>
      <dc:creator>pramit46</dc:creator>
      <dc:date>2017-11-20T09:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query Fails When I use '/' in Query</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-Fails-When-I-use-in-Query/m-p/290272#M55384</link>
      <description>&lt;P&gt;Please try this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="idx" sourcetype="st" host="host" |search (Port=1 OR Port=0 OR Port=23)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Nov 2017 09:17:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-Fails-When-I-use-in-Query/m-p/290272#M55384</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-11-20T09:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query Fails When I use '/' in Query</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-Fails-When-I-use-in-Query/m-p/290273#M55385</link>
      <description>&lt;P&gt;Hi pramit46,&lt;BR /&gt;
Use brackets&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="idx" sourcetype="st" host="host" Port="1/0/23"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;otherwise use regex command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| regex "1\/0\/23"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 09:38:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-Fails-When-I-use-in-Query/m-p/290273#M55385</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-11-20T09:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query Fails When I use '/' in Query</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-Fails-When-I-use-in-Query/m-p/290274#M55386</link>
      <description>&lt;P&gt;I guess you meant quotes, not bracket. If that is the case, then I already tried that too but did not help either.&lt;BR /&gt;
I am not sure how I can use regex since I am receiving this value from another panel as part drilldown in that panel. If you have any clue on this, then please let me know I'll try that for sure. &lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 10:11:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-Fails-When-I-use-in-Query/m-p/290274#M55386</guid>
      <dc:creator>pramit46</dc:creator>
      <dc:date>2017-11-20T10:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query Fails When I use '/' in Query</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-Fails-When-I-use-in-Query/m-p/290275#M55387</link>
      <description>&lt;P&gt;I am supposed to get this value from another panel as part of drilldown. so I'm not sure how to apply your approach.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 10:12:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-Fails-When-I-use-in-Query/m-p/290275#M55387</guid>
      <dc:creator>pramit46</dc:creator>
      <dc:date>2017-11-20T10:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query Fails When I use '/' in Query</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-Fails-When-I-use-in-Query/m-p/290276#M55388</link>
      <description>&lt;P&gt;Hi @pramit46,&lt;/P&gt;

&lt;P&gt;You can set custom drilldown on that panel.&lt;/P&gt;

&lt;P&gt;Can you please try below code in panel drilldown?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;drilldown&amp;gt;
          &amp;lt;link target="_blank"&amp;gt;search?q=index="idx" sourcetype="st" host="host" [ | makeresults | eval Port="$row.Port$" | eval Port=split(Port,"/") | mvexpand Port | table Port | return 5 Port ]&amp;amp;amp;earliest=-24h@h&amp;amp;amp;latest=now&amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Change drilldown token &lt;CODE&gt;"$row.Port$"&lt;/CODE&gt; as per your requirement.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 10:27:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-Fails-When-I-use-in-Query/m-p/290276#M55388</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-11-20T10:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query Fails When I use '/' in Query</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-Fails-When-I-use-in-Query/m-p/290277#M55389</link>
      <description>&lt;P&gt;I read this trick somewhere and it worked for me:&lt;/P&gt;

&lt;P&gt;index="idx" sourcetype="st" host="host" &lt;BR /&gt;
| eval Port_str=toString(Port)&lt;BR /&gt;
| search  Port_str="1/0/44"&lt;/P&gt;

&lt;P&gt;Now all I have to do is to use the drill-down parameter instead of "1/0/44"  (just make sure you keep the quotes even around the parameter field name e.g.: "$parameter$")&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:50:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-Fails-When-I-use-in-Query/m-p/290277#M55389</guid>
      <dc:creator>pramit46</dc:creator>
      <dc:date>2020-09-29T16:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query Fails When I use '/' in Query</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-Fails-When-I-use-in-Query/m-p/290278#M55390</link>
      <description>&lt;P&gt;Yes quotes!&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 10:50:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-Fails-When-I-use-in-Query/m-p/290278#M55390</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-11-20T10:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query Fails When I use '/' in Query</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-Fails-When-I-use-in-Query/m-p/290279#M55391</link>
      <description>&lt;P&gt;I did not try this but I think this would also work. But since the trick I found out yesterday seemed less work, I chose that. But yes, I think this would also work. I liked this idea and may use this in future if needed. thanks a lot @kamlesh_vaghela&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 06:56:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Query-Fails-When-I-use-in-Query/m-p/290279#M55391</guid>
      <dc:creator>pramit46</dc:creator>
      <dc:date>2017-11-21T06:56:54Z</dc:date>
    </item>
  </channel>
</rss>

