<?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 How to ingest MongoDB logs from new servers into splunk? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ingest-MongoDB-logs-from-new-servers-into-splunk/m-p/585534#M103003</link>
    <description>&lt;P class="lia-align-left"&gt;Hi All,&lt;/P&gt;
&lt;P class="lia-align-left"&gt;We have a python code to ingest MongoDB logs into splunk and we are successfully ingesting logs from old servers.&lt;/P&gt;
&lt;P class="lia-align-left"&gt;Now there is a requirement to ingest mongodb logs into splunk from new servers.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;mongodb://USER:PASS@SERVER1:27017,SERVER2:27017/abc_analytics?replicaSet=mongo-replica&amp;lt;/description&amp;gt;&lt;/LI-CODE&gt;
&lt;P class="lia-align-left"&gt;&lt;SPAN&gt;This is how logs are ingested, now when I try the same for new servers, I get "Invalid Key error"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-align-left"&gt;&lt;SPAN&gt;NOTE:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-align-left"&gt;&lt;SPAN&gt;1) Firewall connectivity is working fine&lt;BR /&gt;2) MongoDB team says the password is correct&lt;BR /&gt;&lt;BR /&gt;The password that is used, is that given by splunk team or the mongodb team?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-align-left"&gt;&lt;SPAN&gt;If it is MongoDB team, where they need to check the password and the user id?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;internal logs:

02-17-2022 18:45:50.916 +1100 WARN Application - Invalid key in stanza [abc_analytics://XXX-XXX-XXX] in /opt/splunk/etc/deployment-apps/modinput_abc_analytics_mongodb-XXX-XXX-XXX/local/inputs.conf, line 34: mongodb_uri (value: mongodb://Mongodbservername1.local:27017,Mongodbservername2.local:27017/abc_analytics?replicaSet=mongo-replica).\n&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 22 Feb 2022 18:15:49 GMT</pubDate>
    <dc:creator>VijaySrrie</dc:creator>
    <dc:date>2022-02-22T18:15:49Z</dc:date>
    <item>
      <title>How to ingest MongoDB logs from new servers into splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ingest-MongoDB-logs-from-new-servers-into-splunk/m-p/585534#M103003</link>
      <description>&lt;P class="lia-align-left"&gt;Hi All,&lt;/P&gt;
&lt;P class="lia-align-left"&gt;We have a python code to ingest MongoDB logs into splunk and we are successfully ingesting logs from old servers.&lt;/P&gt;
&lt;P class="lia-align-left"&gt;Now there is a requirement to ingest mongodb logs into splunk from new servers.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;mongodb://USER:PASS@SERVER1:27017,SERVER2:27017/abc_analytics?replicaSet=mongo-replica&amp;lt;/description&amp;gt;&lt;/LI-CODE&gt;
&lt;P class="lia-align-left"&gt;&lt;SPAN&gt;This is how logs are ingested, now when I try the same for new servers, I get "Invalid Key error"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-align-left"&gt;&lt;SPAN&gt;NOTE:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-align-left"&gt;&lt;SPAN&gt;1) Firewall connectivity is working fine&lt;BR /&gt;2) MongoDB team says the password is correct&lt;BR /&gt;&lt;BR /&gt;The password that is used, is that given by splunk team or the mongodb team?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-align-left"&gt;&lt;SPAN&gt;If it is MongoDB team, where they need to check the password and the user id?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;internal logs:

02-17-2022 18:45:50.916 +1100 WARN Application - Invalid key in stanza [abc_analytics://XXX-XXX-XXX] in /opt/splunk/etc/deployment-apps/modinput_abc_analytics_mongodb-XXX-XXX-XXX/local/inputs.conf, line 34: mongodb_uri (value: mongodb://Mongodbservername1.local:27017,Mongodbservername2.local:27017/abc_analytics?replicaSet=mongo-replica).\n&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 22 Feb 2022 18:15:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ingest-MongoDB-logs-from-new-servers-into-splunk/m-p/585534#M103003</guid>
      <dc:creator>VijaySrrie</dc:creator>
      <dc:date>2022-02-22T18:15:49Z</dc:date>
    </item>
  </channel>
</rss>

