<?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: Invalid Key In Stanza - index and sourcetype in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-In-Stanza-index-and-sourcetype/m-p/653884#M110874</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232317"&gt;@StuartMacL&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;could you share your inputs.conf?&lt;/P&gt;&lt;P&gt;where is it located (full path)?&lt;/P&gt;&lt;P&gt;with btool you analyze installed apps, but on the deployment server, usually there isn't any installed apps, but only apps in $SPLUNK_HOME/etc/deployment-apps to deploy.&lt;/P&gt;&lt;P&gt;If you run btool on a target client, have you the same message?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2023 08:42:54 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-08-10T08:42:54Z</dc:date>
    <item>
      <title>Invalid Key In Stanza - index and sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-In-Stanza-index-and-sourcetype/m-p/653877#M110873</link>
      <description>&lt;P&gt;&lt;SPAN&gt;On my deployment server, when running btool check against&amp;nbsp;inputs.conf and 'grep'ing for the name of my manually&amp;nbsp;created app (which has nothing&amp;nbsp;but a local directory, an inputs.conf and an automatically created app.conf file) I have a 'Invalid key in stanza [monitor]...' which complains about a line where I have;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;index = indexName&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And another error about;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sourcetype = sourcetypeName&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't understand why Splunk doesn't like these lines. I can't find an appropriate inputs.conf.spec file where the issue could be fixed, but maybe I am not looking in correct place.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When I run a btool check against all of our .conf files and Splunk is reporting that fields such as index, source, sourcetype, crcSalt, initCrcLength and more are invalid stanzas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have hundreds of such ‘invalid key’ errors. We also have hundreds of errors for “No spec file for:” for all .conf files other than inputs.conf – no such errors for inputs.conf. Maybe something major (or minor with major implications) went wrong after an upgrade?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 08:16:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-In-Stanza-index-and-sourcetype/m-p/653877#M110873</guid>
      <dc:creator>StuartMacL</dc:creator>
      <dc:date>2023-08-10T08:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Key In Stanza - index and sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-In-Stanza-index-and-sourcetype/m-p/653884#M110874</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232317"&gt;@StuartMacL&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;could you share your inputs.conf?&lt;/P&gt;&lt;P&gt;where is it located (full path)?&lt;/P&gt;&lt;P&gt;with btool you analyze installed apps, but on the deployment server, usually there isn't any installed apps, but only apps in $SPLUNK_HOME/etc/deployment-apps to deploy.&lt;/P&gt;&lt;P&gt;If you run btool on a target client, have you the same message?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 08:42:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-In-Stanza-index-and-sourcetype/m-p/653884#M110874</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-08-10T08:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Key In Stanza - index and sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-In-Stanza-index-and-sourcetype/m-p/653889#M110875</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;gcusello, appreciate your speedy response.&lt;BR /&gt;&lt;BR /&gt;This is the full inputs.conf;&lt;BR /&gt;&lt;BR /&gt;[monitor:///var/log/beams/.*log]&lt;BR /&gt;disabled = 0&lt;BR /&gt;index = beams&lt;BR /&gt;sourcetype = gobeams&lt;BR /&gt;&lt;BR /&gt;It is located in /opt/splunk/etc/deployment-apps/TA-GOBEAMS-inputs/local/inputs.conf&lt;BR /&gt;&lt;BR /&gt;Yes, I had to copy all my apps from deployment-apps directory into a new directory named deployment-apps-for-btool/apps/ and then specify that btool check that directory.&lt;BR /&gt;&lt;BR /&gt;Regarding running btool on server where UF is, I cant do that currently but have asked manager of server to do so.&lt;BR /&gt;&lt;BR /&gt;I'm wondering if there is some bigger issue as many of our apps/feeds have stopped working and I also see many Invalid stanza errors, for GOBEAMS app but also other apps where events are no longer being received by our indexers.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 09:13:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-In-Stanza-index-and-sourcetype/m-p/653889#M110875</guid>
      <dc:creator>StuartMacL</dc:creator>
      <dc:date>2023-08-10T09:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Key In Stanza - index and sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-In-Stanza-index-and-sourcetype/m-p/653957#M110877</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232317"&gt;@StuartMacL&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you cannot access the target client, could you install the TA on a different client (eventually a test system)?&lt;/P&gt;&lt;P&gt;Could you access the target client only to run a local Splunk restart by console and see the boot messages?&lt;/P&gt;&lt;P&gt;As I said the btool should be applied on installed apps and probably the issue is this.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 15:20:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-In-Stanza-index-and-sourcetype/m-p/653957#M110877</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-08-10T15:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Key In Stanza - index and sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-In-Stanza-index-and-sourcetype/m-p/653968#M110880</link>
      <description>&lt;P&gt;I deployed the app on my local machine and ran btool - i think you are correct, i dont get the same invalid stanza errors there.&lt;BR /&gt;&lt;BR /&gt;I wish there was some way to check for issues with conf files in deployment-apps. Is the only way to do this by copying your app to apps directory?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 15:50:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-In-Stanza-index-and-sourcetype/m-p/653968#M110880</guid>
      <dc:creator>StuartMacL</dc:creator>
      <dc:date>2023-08-10T15:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Key In Stanza - index and sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-In-Stanza-index-and-sourcetype/m-p/653969#M110881</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232317"&gt;@StuartMacL&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I didn't used it in deployment-apps folder, so I'm not sure that's possible on deployment-apps.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 15:57:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-In-Stanza-index-and-sourcetype/m-p/653969#M110881</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-08-10T15:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Key In Stanza - index and sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-In-Stanza-index-and-sourcetype/m-p/654054#M110900</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;basically you could do the check with btool like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[soutamo@vega] ~/tmp&amp;gt;
(0) $ splunk btool --dir=`pwd`/etc check
		Invalid key in stanza [monitor:///var/log/com.apple.xpc.launchd/launchd.log] in /Users/soutamo/tmp/etc/apps/_server_app_Launchd/local/inputs.conf, line 4: foo (value: bar).&lt;/LI-CODE&gt;&lt;P&gt;But you need to copy also etc/system/README folder under your etc to get it working.&lt;/P&gt;&lt;P&gt;r. Ismo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 10:41:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-In-Stanza-index-and-sourcetype/m-p/654054#M110900</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-08-11T10:41:07Z</dc:date>
    </item>
  </channel>
</rss>

