<?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 service is using Off-site (external) NTP queries in Installation</title>
    <link>https://community.splunk.com/t5/Installation/Why-is-Splunk-service-using-Off-site-external-NTP-queries/m-p/635781#M12479</link>
    <description>&lt;P&gt;Just to make sure:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;grep -re "versadns\.com" $SPLUNK_HOME/etc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Will only work if your environment has the SPLUNK_HOME variable set. I doubt your root user will in this context.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is this Splunk Enterprise or Splunk UF?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Try:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;grep -re "versadns\.com" /opt/splunk/etc&lt;BR /&gt;grep -re "gac\.edu" /opt/splunk/etc&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(or wherever your Splunk instance is located).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If that doesn't have any hits, then I'm certain this won't be triggered by the Splunk service directly and will be more generally related to your OSs NTP client. Let me know how you get on!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2023 19:14:31 GMT</pubDate>
    <dc:creator>Tom_Lundie</dc:creator>
    <dc:date>2023-03-23T19:14:31Z</dc:date>
    <item>
      <title>Why is Splunk service using Off-site (external) NTP queries?</title>
      <link>https://community.splunk.com/t5/Installation/Why-is-Splunk-service-using-Off-site-external-NTP-queries/m-p/635704#M12473</link>
      <description>&lt;P&gt;splunk service is using offsite (external) NTP queries.&lt;/P&gt;&lt;P&gt;ntp.domain.com is our internal NTP domain and we have configured the same on our server under /etc/ntp.conf&lt;/P&gt;&lt;P&gt;We could see that ntp configuration is being used in Splunk_TA_nix app under time.sh script and further verified I see it is configured with NTP internal domain as “ntp­­­­­­­­­­.domain.com” under /etc/ntp.conf.&lt;/P&gt;&lt;P&gt;But still splunk is using Offsite NTP queries. Any idea why splunk is using offsite NTP queries ?&lt;/P&gt;&lt;P&gt;[splunk@hostname bin]$ ls -lrt | grep -ir ntp&lt;BR /&gt;time.sh:if [ -f &amp;nbsp;&amp;nbsp;&amp;nbsp;/etc/ntp.conf ] ; then&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;============================================&lt;/P&gt;&lt;P&gt;[splunk@hostname bin]$ cat /etc/ntp.conf | grep&amp;nbsp; ntp.domain.com&lt;BR /&gt;&lt;BR /&gt;restrict -6 ::1&amp;nbsp;pool ntp.domain.com iburst&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 07:24:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Why-is-Splunk-service-using-Off-site-external-NTP-queries/m-p/635704#M12473</guid>
      <dc:creator>venkateshparank</dc:creator>
      <dc:date>2023-03-24T07:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: splunk service is using Off-site (external) NTP queries</title>
      <link>https://community.splunk.com/t5/Installation/Why-is-Splunk-service-using-Off-site-external-NTP-queries/m-p/635726#M12474</link>
      <description>&lt;P&gt;AFAIK, Splunk does not have a built in NTP client and what you're seeing is a red herring.&lt;/P&gt;&lt;P&gt;What OS are you using?&amp;nbsp;The reason I ask is that chrony is the default ntp client as of RHEL/CentOS 7 and uses a completely different config (/etc/chrony.conf).&lt;/P&gt;&lt;P&gt;I would check if you're using chrony (and if you are, then update your chrony config as appropriate).&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 14:20:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Why-is-Splunk-service-using-Off-site-external-NTP-queries/m-p/635726#M12474</guid>
      <dc:creator>Tom_Lundie</dc:creator>
      <dc:date>2023-03-23T14:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: splunk service is using Off-site (external) NTP queries</title>
      <link>https://community.splunk.com/t5/Installation/Why-is-Splunk-service-using-Off-site-external-NTP-queries/m-p/635730#M12475</link>
      <description>&lt;P&gt;We have RHEL 7&lt;/P&gt;&lt;P&gt;Linux&amp;nbsp; 3.10.0-1160.83.1.el7.x86_64&lt;/P&gt;&lt;P&gt;We do not have chrony.conf on server:&lt;/P&gt;&lt;P&gt;cat /etc/chrony.conf&lt;BR /&gt;cat: /etc/chrony.conf: No such file or directory&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 14:40:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Why-is-Splunk-service-using-Off-site-external-NTP-queries/m-p/635730#M12475</guid>
      <dc:creator>venkateshparank</dc:creator>
      <dc:date>2023-03-23T14:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: splunk service is using Off-site (external) NTP queries</title>
      <link>https://community.splunk.com/t5/Installation/Why-is-Splunk-service-using-Off-site-external-NTP-queries/m-p/635744#M12476</link>
      <description>&lt;P&gt;Hmm, it does seem like you are using ntpd then. Just to double-check, can you share the output of these commands:&lt;BR /&gt;systemctl is-active ntpd&lt;BR /&gt;systemctl is-active chronyd&lt;/P&gt;&lt;P&gt;If you definitely are using ntpd then make sure there are no ntpd configs that could be calling out to those external domain. Trace through any&amp;nbsp;&lt;EM&gt;includefile&lt;/EM&gt;&lt;SPAN&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;references within /etc/ntp.conf.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you are confident that your OS's NTP Client is not calling out to those external servers. Then the next step is to make sure you're only observing these call-outs when Splunk is running. If you determine this to be the case, then I think this could be down to an app on your Splunk instance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Try the following command:&lt;BR /&gt;grep -re "gac\.edu" $SPLUNK_HOME/etc&lt;BR /&gt;grep -re "versadns\.com" $SPLUNK_HOME/etc&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;Where $SPLUNK_HOME is your /opt/splunk path or /opt/splunkforwarder path.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 15:43:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Why-is-Splunk-service-using-Off-site-external-NTP-queries/m-p/635744#M12476</guid>
      <dc:creator>Tom_Lundie</dc:creator>
      <dc:date>2023-03-23T15:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: splunk service is using Off-site (external) NTP queries</title>
      <link>https://community.splunk.com/t5/Installation/Why-is-Splunk-service-using-Off-site-external-NTP-queries/m-p/635764#M12477</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/227250"&gt;@Tom_Lundie&lt;/a&gt;&amp;nbsp;Here is the output&lt;/P&gt;&lt;P&gt;[root@server ~]# systemctl is-active ntpd&lt;BR /&gt;active&lt;BR /&gt;[root@server ~]# systemctl is-active chronyd&lt;BR /&gt;unknown&lt;BR /&gt;[root@server ~]# grep -re "gac\.edu" $SPLUNK_HOME/etc&lt;BR /&gt;[root@server ~]# grep -re "gac\.edu" $SPLUNK_HOME&lt;BR /&gt;[root@server ~]# grep -re "versadns\.com" $SPLUNK_HOME/etc&lt;BR /&gt;[root@server ~]# grep -re "versadns\.com" $SPLUNK_HOME&lt;BR /&gt;[root@server ~]#&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 17:51:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Why-is-Splunk-service-using-Off-site-external-NTP-queries/m-p/635764#M12477</guid>
      <dc:creator>venkateshparank</dc:creator>
      <dc:date>2023-03-23T17:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: splunk service is using Off-site (external) NTP queries</title>
      <link>https://community.splunk.com/t5/Installation/Why-is-Splunk-service-using-Off-site-external-NTP-queries/m-p/635781#M12479</link>
      <description>&lt;P&gt;Just to make sure:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;grep -re "versadns\.com" $SPLUNK_HOME/etc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Will only work if your environment has the SPLUNK_HOME variable set. I doubt your root user will in this context.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is this Splunk Enterprise or Splunk UF?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Try:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;grep -re "versadns\.com" /opt/splunk/etc&lt;BR /&gt;grep -re "gac\.edu" /opt/splunk/etc&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(or wherever your Splunk instance is located).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If that doesn't have any hits, then I'm certain this won't be triggered by the Splunk service directly and will be more generally related to your OSs NTP client. Let me know how you get on!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 19:14:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Why-is-Splunk-service-using-Off-site-external-NTP-queries/m-p/635781#M12479</guid>
      <dc:creator>Tom_Lundie</dc:creator>
      <dc:date>2023-03-23T19:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: splunk service is using Off-site (external) NTP queries</title>
      <link>https://community.splunk.com/t5/Installation/Why-is-Splunk-service-using-Off-site-external-NTP-queries/m-p/635783#M12480</link>
      <description>&lt;P&gt;Yea&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/227250"&gt;@Tom_Lundie&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;We have environment variable set for SPLUNK_HOME and it is UF.&lt;/P&gt;&lt;P&gt;I have also tried by giving complete path instead of SPLUNK_HOME but still no results.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 19:28:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Why-is-Splunk-service-using-Off-site-external-NTP-queries/m-p/635783#M12480</guid>
      <dc:creator>venkateshparank</dc:creator>
      <dc:date>2023-03-23T19:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk service using Off-site (external) NTP queries?</title>
      <link>https://community.splunk.com/t5/Installation/Why-is-Splunk-service-using-Off-site-external-NTP-queries/m-p/635790#M12482</link>
      <description>&lt;P&gt;Okay, I've re-read your question and I know what's going on here.&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;time.sh&lt;/STRONG&gt; script that you referenced is designed to echo a manual NTP query and then the server date. The ntp query is determined via the OS's NTP client's config files and you're right that it does attempt to use /etc/ntp.conf.&lt;/P&gt;&lt;P&gt;This is where the issue comes in: on line 31 we're attempting to parse the ntp.conf&amp;nbsp;&lt;EM&gt;server&lt;/EM&gt; directive. You have presumably commented out the original server and are now using a&amp;nbsp;&lt;EM&gt;pool&lt;/EM&gt; directive. This&amp;nbsp;&lt;EM&gt;pool&lt;/EM&gt; will not&amp;nbsp;match the awk parameters so the script will fall-back to using the $DEFAULT_SERVER (defined on line 26) as per line 32.&lt;/P&gt;&lt;P&gt;This default server variable corresponds with&amp;nbsp;&lt;SPAN&gt;0.pool.ntp.org, which explains those fqdn names that you've been observing via tcpdump.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To address this, you'll need to modify time.sh to suit your needs. A quick fix could be to change line 31 to support the &lt;EM&gt;pool&lt;/EM&gt; directive as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;		SERVER=$($AWK '^(server|pool) / {print $2; exit}' "$CONFIG")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be fair, this is a Splunk supported add-on, and your ntp.conf is perfectly valid so you could also try and raise a support case to get this supported upstream.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 12:05:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Why-is-Splunk-service-using-Off-site-external-NTP-queries/m-p/635790#M12482</guid>
      <dc:creator>Tom_Lundie</dc:creator>
      <dc:date>2023-03-24T12:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk service using Off-site (external) NTP queries?</title>
      <link>https://community.splunk.com/t5/Installation/Why-is-Splunk-service-using-Off-site-external-NTP-queries/m-p/635835#M12483</link>
      <description>&lt;P&gt;That's great&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/227250"&gt;@Tom_Lundie&lt;/a&gt;&amp;nbsp;, Thank you for sharing details. This is helpful.&lt;/P&gt;&lt;P&gt;We have many servers in our environment but only few are having this issue. I identified that Splunk_TA_nix version which we have on these servers is very old, the serves which are having latest version doesn't have any issue.&lt;/P&gt;&lt;P&gt;There was slight difference in time.sh between 6.x and 8.x version. So will try to upgrade and validate. if still issue exists, will update the script as you mentioned.&lt;/P&gt;&lt;P&gt;Thanks again for the wonderful suggestion and accepted it as solution.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 07:28:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Why-is-Splunk-service-using-Off-site-external-NTP-queries/m-p/635835#M12483</guid>
      <dc:creator>venkateshparank</dc:creator>
      <dc:date>2023-03-24T07:28:23Z</dc:date>
    </item>
  </channel>
</rss>

