<?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: Syntax Error while using &amp;quot;distance&amp;quot; command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Syntax-Error-while-using-quot-distance-quot-command/m-p/660963#M228198</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/80737"&gt;@inventsekar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for your feedback.&lt;/P&gt;&lt;P&gt;Yes, I'm currently using the Splunk App for Salesforce and this is our first time installing it. On the Splunk warning message, it didnt mentioned any details, only as the above screenshot. I did check on the search.log, they error show "syntax error - script (path)".&lt;/P&gt;&lt;P&gt;I guess i need to fine tuned the query or is there any other way I can work on?&lt;/P&gt;</description>
    <pubDate>Tue, 17 Oct 2023 03:44:15 GMT</pubDate>
    <dc:creator>syazwani</dc:creator>
    <dc:date>2023-10-17T03:44:15Z</dc:date>
    <item>
      <title>Syntax Error while using "distance" command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Syntax-Error-while-using-quot-distance-quot-command/m-p/660810#M228150</link>
      <description>&lt;P&gt;Hi peeps,&lt;/P&gt;&lt;P&gt;I receive below error while running a query.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error on dashboard.png" style="width: 391px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27589i5E8055D53032EAD3/image-size/large?v=v2&amp;amp;px=999" role="button" title="error on dashboard.png" alt="error on dashboard.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;below is my query;&lt;/P&gt;&lt;PRE&gt;eventtype=sfdc-login-history &lt;BR /&gt;| iplocation allfields=true SourceIp &lt;BR /&gt;| eval cur_t=_time &lt;BR /&gt;| streamstats current=t window=2 first(lat) as prev_lat first(lon) as prev_lon first(cur_t) as prev_t by Username &lt;BR /&gt;| eval time_diff=cur_t - prev_t &lt;BR /&gt;| distance outputField=distance inputFieldlat1=lat inputFieldLat2=prev_lat inputfieldLon1=lon inputFieldLon2=prev_lon&lt;BR /&gt;| eval time_diff=-1*time_diff&lt;BR /&gt;| eval ratio = distances3600/time_diff&lt;BR /&gt;| where ratio&amp;gt; 500&amp;nbsp;&lt;BR /&gt;| geostats latfield=lat longfield=lon count&amp;nbsp;by&amp;nbsp;Application&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 05:03:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Syntax-Error-while-using-quot-distance-quot-command/m-p/660810#M228150</guid>
      <dc:creator>syazwani</dc:creator>
      <dc:date>2023-10-16T05:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error while using "distance" command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Syntax-Error-while-using-quot-distance-quot-command/m-p/660824#M228151</link>
      <description>&lt;P&gt;There is no such standard search command as "distance". It must come from an app you have installed. Consult the app's documentation for correct syntax.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 07:55:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Syntax-Error-while-using-quot-distance-quot-command/m-p/660824#M228151</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-10-16T07:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error while using "distance" command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Syntax-Error-while-using-quot-distance-quot-command/m-p/660829#M228152</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/238134"&gt;@syazwani&lt;/a&gt;&amp;nbsp;... As said by PickleRick, there is no Splunk command as "distance"&lt;/P&gt;&lt;P&gt;1) For other new Splunker's info about Splunk's Search Commands.. pls check the Splunk search reference document..&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.1.1/SearchReference/Rex" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.1.1/SearchReference/Rex&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(i copied rex command's link... on the left side you will see a list of commands, alphabetically)&lt;/P&gt;&lt;P&gt;2) this should be from a app or add-on... mostly from a macros.conf file from that app/add-on&amp;nbsp;&lt;/P&gt;&lt;P&gt;so, pls try to look into the macros conf files.&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) may we know if this was working previously and just recently it didnt work? was there any app/add-on upgrades?&amp;nbsp;&lt;/P&gt;&lt;P&gt;4) not sure, but, lets try... that error msg got an yellow triangle.. like a splunk warning msg.. are you able to click on it?.. does it give you more details?&amp;nbsp;&lt;/P&gt;&lt;P&gt;5) on the internal logs for that app/add-on, do you see any warnings/errors&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 09:43:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Syntax-Error-while-using-quot-distance-quot-command/m-p/660829#M228152</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2023-10-16T09:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error while using "distance" command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Syntax-Error-while-using-quot-distance-quot-command/m-p/660963#M228198</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/80737"&gt;@inventsekar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for your feedback.&lt;/P&gt;&lt;P&gt;Yes, I'm currently using the Splunk App for Salesforce and this is our first time installing it. On the Splunk warning message, it didnt mentioned any details, only as the above screenshot. I did check on the search.log, they error show "syntax error - script (path)".&lt;/P&gt;&lt;P&gt;I guess i need to fine tuned the query or is there any other way I can work on?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 03:44:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Syntax-Error-while-using-quot-distance-quot-command/m-p/660963#M228198</guid>
      <dc:creator>syazwani</dc:creator>
      <dc:date>2023-10-17T03:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error while using "distance" command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Syntax-Error-while-using-quot-distance-quot-command/m-p/660964#M228199</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Noted on this. Yes I am using the Splunk App for Salesforce and it is using the "distance" command. Seems like they dont have a documentation for this app. Btw thankyou for your feedback.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 03:47:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Syntax-Error-while-using-quot-distance-quot-command/m-p/660964#M228199</guid>
      <dc:creator>syazwani</dc:creator>
      <dc:date>2023-10-17T03:47:47Z</dc:date>
    </item>
  </channel>
</rss>

