This Splunk app provides a new Splunk search language command 'r' that allows passing data from Splunk to the R-Engine for calculation and then passing results back to Splunk for further computation or visualization.
R is a language and environment for statistical computing. It provides a wide variety of statistical (linear and nonlinear modeling, classical statistical tests, time-series analysis, classification, clustering, ...) techniques, and is highly extensible.
Here's a link the actual R-Project website.
The command requires one parameters which is either a actual R language script:
| r "output = data.frame(Name=c('A','B','C'),Value=c(1,2,3))"
... or just the name of a R script file that is uploaded to the app:
| r myscript.r
- Integration of a R script into the Splunk search pipeline
- Upload custom scripts (use the source() function to include them into the pipeline script)
- Manage external packages (use the library() function to load them from the pipeline script)
- Supports generating and streaming command mode
- Show R error messages on the Splunk UI
- Provide usage statitics of the app itself
This app is available on the Splunk App Store. You can also clone the repository to install the app manually.
This app runs on a wide variety of Linux and Unix platforms, Windows and Mac OS X.
Please send me your feedback, questions and suggestions at [email protected].
You're also invited to clone/watch/star/fork the GitHub project, send Pull Requests or just create Issues.