<?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 Passing Custom Variable to Trigger shell script? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Passing-Custom-Variable-to-Trigger-shell-script/m-p/38170#M7003</link>
    <description>&lt;P&gt;There are 9 parameters that are passed to the Shell script from Splunk, with the one being unused. Is it possible to use that 7th (depreciated) variable to pass a field like ServerName or some such?&lt;/P&gt;

&lt;P&gt;(&lt;A href="http://www.splunk.com/base/Documentation/latest/Admin/Configurescriptedalerts"&gt;http://www.splunk.com/base/Documentation/latest/Admin/Configurescriptedalerts&lt;/A&gt;)&lt;/P&gt;

&lt;P&gt;Right now we have a global scheduled search across servers to trigger an SNMP trap ... it would be nice to be able to pass a specific server name along with the other information currently sent.&lt;BR /&gt;
This can be done if an individual report is created for each server, but that would be tedious.&lt;/P&gt;

&lt;P&gt;Thoughts?&lt;/P&gt;

&lt;P&gt;~jt&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jul 2011 19:10:06 GMT</pubDate>
    <dc:creator>jitter</dc:creator>
    <dc:date>2011-07-05T19:10:06Z</dc:date>
    <item>
      <title>Passing Custom Variable to Trigger shell script?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Passing-Custom-Variable-to-Trigger-shell-script/m-p/38170#M7003</link>
      <description>&lt;P&gt;There are 9 parameters that are passed to the Shell script from Splunk, with the one being unused. Is it possible to use that 7th (depreciated) variable to pass a field like ServerName or some such?&lt;/P&gt;

&lt;P&gt;(&lt;A href="http://www.splunk.com/base/Documentation/latest/Admin/Configurescriptedalerts"&gt;http://www.splunk.com/base/Documentation/latest/Admin/Configurescriptedalerts&lt;/A&gt;)&lt;/P&gt;

&lt;P&gt;Right now we have a global scheduled search across servers to trigger an SNMP trap ... it would be nice to be able to pass a specific server name along with the other information currently sent.&lt;BR /&gt;
This can be done if an individual report is created for each server, but that would be tedious.&lt;/P&gt;

&lt;P&gt;Thoughts?&lt;/P&gt;

&lt;P&gt;~jt&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2011 19:10:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Passing-Custom-Variable-to-Trigger-shell-script/m-p/38170#M7003</guid>
      <dc:creator>jitter</dc:creator>
      <dc:date>2011-07-05T19:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Custom Variable to Trigger shell script?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Passing-Custom-Variable-to-Trigger-shell-script/m-p/38171#M7004</link>
      <description>&lt;P&gt;You can read the Splunk_Arg_8 parameter passed, parse the contents of the file for ServerName and use that.&lt;/P&gt;

&lt;P&gt;If you do not have a program for converting GZ to CSV, Splunk includes a command-line converter called minigzip.exe in %SPLUNK_HOME%\bin.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:28:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Passing-Custom-Variable-to-Trigger-shell-script/m-p/38171#M7004</guid>
      <dc:creator>richprescott</dc:creator>
      <dc:date>2020-09-28T11:28:17Z</dc:date>
    </item>
  </channel>
</rss>

