We are trying to centralise the logging infrastructure inside the organisation. The tech stack is mostly NodeJS + Python. We use R for all data processing, reporting and analytics.
The engineering team is planning to use Graylog for some internal tools. Just wanted to understand if people here have some experience in connecting Graylog with the R ecosystem (Shiny applications, scripts, etc)
Python has a grapy package for doing the same. I think this can be used via reticulate. Any other approaches/help/learnings will be appreciated
I had the same task, I used the REST API of Graylog and then read out the data with elasticsearchr. To display the data in a Shiny app, I made a script which is based on the movie explorer example in R Shiny. Does this help you? I can help out with script fragments if needed, and I am happy to exchange experience with you.
You are very welcome, @apooRv. As I unterstand, graypy package is reporting logs from python to graylog. My script is getting data from graylog to analyse them in R. Is this what you want?
You might have a look at the logging package, which has some examples of logging to a remote server via REST (I think this is it? Not sure if this is the best example):
I've been testing using @atheriel's excellent rsyslog package
(https://cran.r-project.org/web/packages/rsyslog/index.html) to forward via rsyslog. I can confirm that it successfully logs to the main syslog process through rstudio-connect, and then I forward that to a logging box.