<?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: Where to save the r-code in splunk and how to run the r-code? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Where-to-save-the-r-code-in-splunk-and-how-to-run-the-r-code/m-p/358724#M95950</link>
    <description>&lt;P&gt;I need it in windows can you help me on this&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jun 2017 16:27:12 GMT</pubDate>
    <dc:creator>satyasai</dc:creator>
    <dc:date>2017-06-21T16:27:12Z</dc:date>
    <item>
      <title>Where to save the r-code in splunk and how to run the r-code?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Where-to-save-the-r-code-in-splunk-and-how-to-run-the-r-code/m-p/358720#M95946</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Where to save the R-code in splunk and how to run the r-code ?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
sai&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 16:57:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Where-to-save-the-r-code-in-splunk-and-how-to-run-the-r-code/m-p/358720#M95946</guid>
      <dc:creator>satyasai</dc:creator>
      <dc:date>2017-06-20T16:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Where to save the r-code in splunk and how to run the r-code?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Where-to-save-the-r-code-in-splunk-and-how-to-run-the-r-code/m-p/358721#M95947</link>
      <description>&lt;P&gt;have you tried using this app to use R&lt;BR /&gt;
&lt;A href="https://splunkbase.splunk.com/app/3339/"&gt;https://splunkbase.splunk.com/app/3339/&lt;/A&gt;&lt;BR /&gt;
personally, I haven't tried using R in Splunk, but I'm not sure if there is a way to save the code in Splunk itself &lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 17:05:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Where-to-save-the-r-code-in-splunk-and-how-to-run-the-r-code/m-p/358721#M95947</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-06-20T17:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Where to save the r-code in splunk and how to run the r-code?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Where-to-save-the-r-code-in-splunk-and-how-to-run-the-r-code/m-p/358722#M95948</link>
      <description>&lt;P&gt;In this R-app in which folder i can specify/paste my r-code&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 03:45:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Where-to-save-the-r-code-in-splunk-and-how-to-run-the-r-code/m-p/358722#M95948</guid>
      <dc:creator>satyasai022</dc:creator>
      <dc:date>2017-06-21T03:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Where to save the r-code in splunk and how to run the r-code?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Where-to-save-the-r-code-in-splunk-and-how-to-run-the-r-code/m-p/358723#M95949</link>
      <description>&lt;P&gt;I'm not entirely sure, since I haven't used the app myself. the documentation in splunkbase didn't work for me, but I think it's referring to this, if it helps:&lt;BR /&gt;
&lt;A href="https://github.com/opencpu/server-manual/blob/gh-pages/opencpu-server.pdf"&gt;https://github.com/opencpu/server-manual/blob/gh-pages/opencpu-server.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 11:36:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Where-to-save-the-r-code-in-splunk-and-how-to-run-the-r-code/m-p/358723#M95949</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-06-21T11:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Where to save the r-code in splunk and how to run the r-code?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Where-to-save-the-r-code-in-splunk-and-how-to-run-the-r-code/m-p/358724#M95950</link>
      <description>&lt;P&gt;I need it in windows can you help me on this&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 16:27:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Where-to-save-the-r-code-in-splunk-and-how-to-run-the-r-code/m-p/358724#M95950</guid>
      <dc:creator>satyasai</dc:creator>
      <dc:date>2017-06-21T16:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Where to save the r-code in splunk and how to run the r-code?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Where-to-save-the-r-code-in-splunk-and-how-to-run-the-r-code/m-p/358725#M95951</link>
      <description>&lt;P&gt;Splunk doesnt support Ruby scripts out of the box.  You have a few options though.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;You can wrap your ruby code in a powershell script and setup the powershell script as a scripted input.&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;You can wrap your ruby code in a batch script and setup the batch script as a scripted input. &lt;/LI&gt;
&lt;LI&gt;You can wrap your ruby code in a python script and setup the python script as a scripted input.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;See inputs.conf for configuring scripted inputs.&lt;/P&gt;

&lt;P&gt;How do you wrap a script you may ask?&lt;/P&gt;

&lt;P&gt;In c:\run_my_ruby.bat you might do this:&lt;BR /&gt;
c:\path\to\your\ruby.exe your_ruby_code.rb&lt;/P&gt;

&lt;P&gt;Then in Splunk inputs.conf you could do this&lt;/P&gt;

&lt;P&gt;[script://c:\run_my_ruby.bat]&lt;BR /&gt;
interval = 60&lt;/P&gt;

&lt;P&gt;Then restart splunk and profit.  This would execute c:\run_my_ruby.bat every 60s from when splunk is restarted.  Check inputs.conf for other interval options.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:37:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Where-to-save-the-r-code-in-splunk-and-how-to-run-the-r-code/m-p/358725#M95951</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2020-09-29T14:37:48Z</dc:date>
    </item>
  </channel>
</rss>

