How to get Splunk logs into UiPath to perform subsequent action

There is an business application whose logs are configured on Splunk. I want to read those logs from Splunk and search for any error codes. If there is any error then perform subsequent actions.

I can do this by UI automation by logging into Splunk and apply required filter and scrape the logs coming in result and find out if there are any errors. Is it feasible and correct approach?

Is there any alternative solution to make an integration/connection with Splunk to fetch the logs directly into UiPath (and store in DT/String) without any need to login into Splunk via UI? Please confirm.

Thanks,
Sumit Tyagi

Hi @sumit.tyagi

Here is few suggestions.

  1. Generate log files during BOT run within the flow/sequence and then install Splunk Agent and get logs from that files by using regular expression patterns

  2. Create an application in .NET to get data by Orchestrator API and create log files from that data. Then install Splunk Agent and get logs from that files by regular expressions

  3. Create an app in .NET to get data by Orchestrator API and send them directly to Splunk

Splunk libraries for .NET
http://dev.splunk.com/view/splunk-loglib-dotnet/SP-CAAAEX4

Hope this will be helpful. Thank you

had you explored following?
https://docs.splunk.com/Documentation/Splunk/8.2.3/RESTREF/RESTprolog