<?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: Capture data from scripted input in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Capture-data-from-scripted-input/m-p/474102#M81416</link>
    <description>&lt;P&gt;Sure enough, it didn't like the comment in the interval declaration in inputs.conf.&lt;BR /&gt;
Working great now.  Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2020 17:18:43 GMT</pubDate>
    <dc:creator>tsheets13</dc:creator>
    <dc:date>2020-01-02T17:18:43Z</dc:date>
    <item>
      <title>Capture data from scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Capture-data-from-scripted-input/m-p/474100#M81414</link>
      <description>&lt;P&gt;I'm trying to so a simple ps for ssh connections from a specific user.  I have created a python script&lt;/P&gt;

&lt;H1&gt;! /usr/bin/python&lt;/H1&gt;

&lt;P&gt;import os&lt;BR /&gt;
os.system("ps -ef|grep 'sshd: myuser'|wc -l")&lt;/P&gt;

&lt;P&gt;I've configured the script in inputs.conf&lt;/P&gt;

&lt;P&gt;[script://$SPLUNK_HOME/etc/apps/CheckSSH/bin/chkssh.py]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
index = testing&lt;BR /&gt;
interval = 30    #frequency to run the script, in seconds&lt;BR /&gt;
source = ssh_myuser&lt;BR /&gt;
sourcetype = ssh_myuser&lt;/P&gt;

&lt;P&gt;However, when I search for "sourcetype=ssh_myuser"  I get no results.&lt;/P&gt;

&lt;P&gt;ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:30:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Capture-data-from-scripted-input/m-p/474100#M81414</guid>
      <dc:creator>tsheets13</dc:creator>
      <dc:date>2020-09-30T03:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Capture data from scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Capture-data-from-scripted-input/m-p/474101#M81415</link>
      <description>&lt;P&gt;Search for errors in the _internal Splunk logs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal error chkssh.py
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If there are no logs in _internal for the script you can also check the local logs on the machine running the script:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/var/log/splunk/
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;On the host running the script, have you verified connectivity to the Splunk endpoint? Firewalls can be brutal.&lt;/P&gt;

&lt;P&gt;If you have some more troubleshooting data, please share.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 15:32:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Capture-data-from-scripted-input/m-p/474101#M81415</guid>
      <dc:creator>mydog8it</dc:creator>
      <dc:date>2020-01-02T15:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Capture data from scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Capture-data-from-scripted-input/m-p/474102#M81416</link>
      <description>&lt;P&gt;Sure enough, it didn't like the comment in the interval declaration in inputs.conf.&lt;BR /&gt;
Working great now.  Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 17:18:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Capture-data-from-scripted-input/m-p/474102#M81416</guid>
      <dc:creator>tsheets13</dc:creator>
      <dc:date>2020-01-02T17:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Capture data from scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Capture-data-from-scripted-input/m-p/474103#M81417</link>
      <description>&lt;P&gt;@tsheets13 I have converted your comment to answer. Please accept the same to mark this question as answered and assist others facing similar issue.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 19:04:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Capture-data-from-scripted-input/m-p/474103#M81417</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-01-02T19:04:49Z</dc:date>
    </item>
  </channel>
</rss>

