<?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: Two Nearly Identical Inputs But One Doesnt Work (PowerShell) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Two-Nearly-Identical-Inputs-But-One-Doesnt-Work-PowerShell/m-p/376017#M169577</link>
    <description>&lt;P&gt;When you say the top one works but the bottom one doesn't, are you just not seeing data for the sourcetype in the pod-db index?  Or, do you see some type of error?&lt;/P&gt;

&lt;P&gt;Nothing jumps out as wrong in your inputs.conf though.  Maybe some setting somewhere else is interfering?  My personal next step would be btool to check the expanded inputs.conf -&amp;gt; &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.1.0/Troubleshooting/Usebtooltotroubleshootconfigurations"&gt;https://docs.splunk.com/Documentation/Splunk/7.1.0/Troubleshooting/Usebtooltotroubleshootconfigurations&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Something like the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk cmd btool inputs list --debug
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 08 May 2018 00:08:42 GMT</pubDate>
    <dc:creator>jconger</dc:creator>
    <dc:date>2018-05-08T00:08:42Z</dc:date>
    <item>
      <title>Two Nearly Identical Inputs But One Doesnt Work (PowerShell)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Two-Nearly-Identical-Inputs-But-One-Doesnt-Work-PowerShell/m-p/376016#M169576</link>
      <description>&lt;P&gt;So I have the two below in my inputs.conf the top one works, the bottom one does not. Both commands work fine when ran on the machines the forwarders are on.  I cannot find any differences that I could be missing. Thoughts? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[powershell://Get-ClusterGroup]
script = Get-ClusterGroup | Select Name,OwnerNode,State
schedule = 0 */5 * * *
index = pod-db
disabled = 0
sourcetype = Get-ClusterGroup

[powershell://Get-ClusterNode]
script = Get-ClusterNode | Select Name,ID,State
schedule = 0 */5 * * *
index = pod-db
disabled = 0
sourcetype = Get-ClusterNode
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In fact I know they are identical because I did a yank and put in vim to duplicate the top one that works. There is nothing unusual in the splunk-powershell.ps1.log file on the forwarder machine. &lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 00:02:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Two-Nearly-Identical-Inputs-But-One-Doesnt-Work-PowerShell/m-p/376016#M169576</guid>
      <dc:creator>JordanPeterson</dc:creator>
      <dc:date>2018-05-08T00:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Two Nearly Identical Inputs But One Doesnt Work (PowerShell)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Two-Nearly-Identical-Inputs-But-One-Doesnt-Work-PowerShell/m-p/376017#M169577</link>
      <description>&lt;P&gt;When you say the top one works but the bottom one doesn't, are you just not seeing data for the sourcetype in the pod-db index?  Or, do you see some type of error?&lt;/P&gt;

&lt;P&gt;Nothing jumps out as wrong in your inputs.conf though.  Maybe some setting somewhere else is interfering?  My personal next step would be btool to check the expanded inputs.conf -&amp;gt; &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.1.0/Troubleshooting/Usebtooltotroubleshootconfigurations"&gt;https://docs.splunk.com/Documentation/Splunk/7.1.0/Troubleshooting/Usebtooltotroubleshootconfigurations&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Something like the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk cmd btool inputs list --debug
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 May 2018 00:08:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Two-Nearly-Identical-Inputs-But-One-Doesnt-Work-PowerShell/m-p/376017#M169577</guid>
      <dc:creator>jconger</dc:creator>
      <dc:date>2018-05-08T00:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Two Nearly Identical Inputs But One Doesnt Work (PowerShell)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Two-Nearly-Identical-Inputs-But-One-Doesnt-Work-PowerShell/m-p/376018#M169578</link>
      <description>&lt;P&gt;I'm seeing data for one but not the other. No errors I can find. Here's the btool results from that section. Still looks nearly identical. cwdbsql011-01 is the forwarder machine. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;D:\Program Files\Splunk\etc\apps\sql_monitoring\local\inputs.conf                  [powershell://Get-ClusterGroup]
D:\Program Files\Splunk\etc\apps\sql_monitoring\local\inputs.conf                  disabled = 0
host = cwdbsql011-01
D:\Program Files\Splunk\etc\apps\sql_monitoring\local\inputs.conf                  index = pod-db
D:\Program Files\Splunk\etc\system\default\inputs.conf                             interval = 60
D:\Program Files\Splunk\etc\apps\sql_monitoring\local\inputs.conf                  schedule = 0 */5 * * *
D:\Program Files\Splunk\etc\apps\sql_monitoring\local\inputs.conf                  script = Get-ClusterGroup | Select Name,OwnerNode,State
D:\Program Files\Splunk\etc\apps\sql_monitoring\local\inputs.conf                  sourcetype = Get-ClusterGroup
D:\Program Files\Splunk\etc\apps\sql_monitoring\local\inputs.conf                  [powershell://Get-ClusterNode]
D:\Program Files\Splunk\etc\apps\sql_monitoring\local\inputs.conf                  disabled = 0
host = cwdbsql011-01
D:\Program Files\Splunk\etc\apps\sql_monitoring\local\inputs.conf                  index = pod-db
D:\Program Files\Splunk\etc\system\default\inputs.conf                             interval = 60
D:\Program Files\Splunk\etc\apps\sql_monitoring\local\inputs.conf                  schedule = 0 */5 * * *
D:\Program Files\Splunk\etc\apps\sql_monitoring\local\inputs.conf                  script = Get-ClusterNode | Select Name,ID,State
D:\Program Files\Splunk\etc\apps\sql_monitoring\local\inputs.conf                  sourcetype = Get-ClusterNode
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 May 2018 00:21:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Two-Nearly-Identical-Inputs-But-One-Doesnt-Work-PowerShell/m-p/376018#M169578</guid>
      <dc:creator>JordanPeterson</dc:creator>
      <dc:date>2018-05-08T00:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Two Nearly Identical Inputs But One Doesnt Work (PowerShell)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Two-Nearly-Identical-Inputs-But-One-Doesnt-Work-PowerShell/m-p/376019#M169579</link>
      <description>&lt;P&gt;Alright, not sure why this worked buy I dropped the "Get-" from Get-ClusterNode in the source and sourcetype and it works. I'm not sure why that's the case but apparently it is.&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 00:46:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Two-Nearly-Identical-Inputs-But-One-Doesnt-Work-PowerShell/m-p/376019#M169579</guid>
      <dc:creator>JordanPeterson</dc:creator>
      <dc:date>2018-05-08T00:46:48Z</dc:date>
    </item>
  </channel>
</rss>

