<?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: Accessing bash variables via a universal forwarder scripted input in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Accessing-bash-variables-via-a-universal-forwarder-scripted/m-p/298730#M56500</link>
    <description>&lt;P&gt;Is it possible you need to use absolute paths to the java and date commands? I'd suspect that the PATH in use by Splunk might not include the location of java (date should work as such).&lt;/P&gt;

&lt;P&gt;Alternatively perhaps try set -x in the script and watch to output to see what is happening?&lt;/P&gt;

&lt;P&gt;Finally, I'm assuming you have execute permissions on the script...&lt;/P&gt;</description>
    <pubDate>Fri, 06 Oct 2017 12:46:13 GMT</pubDate>
    <dc:creator>gjanders</dc:creator>
    <dc:date>2017-10-06T12:46:13Z</dc:date>
    <item>
      <title>Accessing bash variables via a universal forwarder scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Accessing-bash-variables-via-a-universal-forwarder-scripted/m-p/298729#M56499</link>
      <description>&lt;P&gt;When using a shell script on my splunk server I am able to access variables with no problem ie&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#!/bin/bash
java -jar custom.jar -val $(date +%Y%m%d_%H%M)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, when using the same script with the Universal Forwarder as a .path file the it does not execute.&lt;BR /&gt;
Any suggestions on how to achieve this as a scripted input with the UF?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 19:44:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Accessing-bash-variables-via-a-universal-forwarder-scripted/m-p/298729#M56499</guid>
      <dc:creator>pholderness</dc:creator>
      <dc:date>2017-10-05T19:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing bash variables via a universal forwarder scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Accessing-bash-variables-via-a-universal-forwarder-scripted/m-p/298730#M56500</link>
      <description>&lt;P&gt;Is it possible you need to use absolute paths to the java and date commands? I'd suspect that the PATH in use by Splunk might not include the location of java (date should work as such).&lt;/P&gt;

&lt;P&gt;Alternatively perhaps try set -x in the script and watch to output to see what is happening?&lt;/P&gt;

&lt;P&gt;Finally, I'm assuming you have execute permissions on the script...&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 12:46:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Accessing-bash-variables-via-a-universal-forwarder-scripted/m-p/298730#M56500</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2017-10-06T12:46:13Z</dc:date>
    </item>
  </channel>
</rss>

