Hi,
Where to save the R-code in splunk and how to run the r-code ?
Thanks,
sai
Splunk doesnt support Ruby scripts out of the box. You have a few options though.
See inputs.conf for configuring scripted inputs.
How do you wrap a script you may ask?
In c:\run_my_ruby.bat you might do this:
c:\path\to\your\ruby.exe your_ruby_code.rb
Then in Splunk inputs.conf you could do this
[script://c:\run_my_ruby.bat]
interval = 60
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.
have you tried using this app to use R
https://splunkbase.splunk.com/app/3339/
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
In this R-app in which folder i can specify/paste my r-code
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:
https://github.com/opencpu/server-manual/blob/gh-pages/opencpu-server.pdf
I need it in windows can you help me on this