<?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: Colon Character in JS in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Why-is-Colon-Character-in-JS-not-working/m-p/607075#M13456</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/48886"&gt;@rkeq0515&lt;/a&gt;&amp;nbsp;- I always try multiple try-and-error when dealing with \ (backward slash).&lt;/P&gt;&lt;P&gt;One of these should work:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;... | search path IN (\"*:\\windows\\*\") | stats count&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;... | search path IN (\"*:\\\windows\\\*\") | stats count&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;... | search path IN (\"*:\\\\windows\\\\*\") | stats count&lt;/LI-CODE&gt;&lt;P&gt;(3 or 4 slashes should work)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!!&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jul 2022 18:47:36 GMT</pubDate>
    <dc:creator>VatsalJagani</dc:creator>
    <dc:date>2022-07-26T18:47:36Z</dc:date>
    <item>
      <title>Why is Colon Character in JS not working?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Why-is-Colon-Character-in-JS-not-working/m-p/607072#M13455</link>
      <description>&lt;P&gt;I am trying to use a colon ( : ) in my js file; however, I do not see results when I use the colon.&amp;nbsp; I verified that the command works with the colon when I run it within a Search window.&amp;nbsp; &amp;nbsp;I also have it working without the colon in the js file.&amp;nbsp; I just can't seem to use the colon in the js file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following code in my js file does not work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;... | search (path IN (\"*:\\windows\\*\")) | stats count&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following code in my js file works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;... | search (path IN (\"*\\windows\\*\")) | stats count&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to escape it like I did the double-quotes, but that did not work.&amp;nbsp; Is there a way to use the colon in the js file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 19:54:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Why-is-Colon-Character-in-JS-not-working/m-p/607072#M13455</guid>
      <dc:creator>rkeq0515</dc:creator>
      <dc:date>2022-07-26T19:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Colon Character in JS</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Why-is-Colon-Character-in-JS-not-working/m-p/607075#M13456</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/48886"&gt;@rkeq0515&lt;/a&gt;&amp;nbsp;- I always try multiple try-and-error when dealing with \ (backward slash).&lt;/P&gt;&lt;P&gt;One of these should work:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;... | search path IN (\"*:\\windows\\*\") | stats count&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;... | search path IN (\"*:\\\windows\\\*\") | stats count&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;... | search path IN (\"*:\\\\windows\\\\*\") | stats count&lt;/LI-CODE&gt;&lt;P&gt;(3 or 4 slashes should work)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 18:47:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Why-is-Colon-Character-in-JS-not-working/m-p/607075#M13456</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-07-26T18:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Colon Character in JS</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Why-is-Colon-Character-in-JS-not-working/m-p/607087#M13458</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp; The 4 back slashes worked.&amp;nbsp; I was focused on the colon since 2 back slashes were working.&amp;nbsp; However, I see that it wasn't providing the correct data.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 19:44:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Why-is-Colon-Character-in-JS-not-working/m-p/607087#M13458</guid>
      <dc:creator>rkeq0515</dc:creator>
      <dc:date>2022-07-26T19:44:43Z</dc:date>
    </item>
  </channel>
</rss>

