Is it possible to write logs in SQLCLR procedure to ElasticSearch (EFK or ELK stacks)? If it is where are any examples?
-
1What type of logs do you want to write, or rather where do the logs originate from? I would strongly suggest you write to Elastic from where the logs originate, (unless the logs are SQL Server, in which case I wonder why you would like to store them in Elastic). I am a big proponent of SQLCLR, but if you can do whatever you want to do from outside of SQL Server, you should do so.Niels Berglund– Niels Berglund2021-07-11 05:25:19 +00:00Commented Jul 11, 2021 at 5:25
-
Yes, it is right. First of all it is interesting how to ;-). My situation: I have multiple clients and one database. I'd like to add to SQLCLR functions to send logs to ELK, EFK stack. I have already made SQLCLR proc which writes to GrayLog. It uses pure c# classes. Btw, I have used your article about how to add SQLCLR fun and avoid db trustworthy. Thank you.ZedZip– ZedZip2021-07-11 05:43:20 +00:00Commented Jul 11, 2021 at 5:43
Add a comment
|