Connecting UiPath to Elastic

Hi,
I've been struggling for a while now trying to connect UiPath/Orchestrator to Elastic.
On their documentation they explicitly say that it's possible to output logs to Elastic. Unfortunately i still did not managed to receive data from there.

If anyone ever linked thoses two i would really appreciate some help
Thanks by advance !

Hi,
I finally found out how to fix my problem.
Here is what i've done (i skipped things unrelated to Elastic):

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <!--Logging configuration-->
  <nlog>
    <targets>
      <target name="robotElasticBuffer" xsi:type="BufferingWrapper" flushTimeout="5000">
    		<target xsi:type="ElasticSearch" name="<anything you want>" uri="http://<ip_or_hostname_here>:9200" requireAuth="false" username="" password="" index="<shared_index_name>-${date:format=yyyy.MM.dd}" documentType="logEvent" includeAllProperties="true" layout="${message}" excludedProperties="agentSessionId,tenantId,indexName" disablePing = "true" /> <!-- You can also use index that are not shared between loggers -->
  	  </target>
      <target name="serverElasticBuffer" xsi:type="BufferingWrapper" flushTimeout="5000">
        <target xsi:type="ElasticSearch" name="serverElastic" uri="" requireAuth="false" username="" password="" index="serverdiagnostics-${date:format=yyyy.MM}" documentType="logEvent" includeAllProperties="true" layout="${machinename} ${message}" />
      </target>
    </targets>
    <rules>
      <logger name="Robot.*" ruleName="insightsRobotLogsRule" enabled="true" minlevel="Info" writeTo="insightsRobotLogs,robotElasticBuffer">
        <filters defaultAction="Ignore">
          <when condition="level &gt;= LogLevel.Error or ends-with('${message}',' execution ended')" action="Log" />
        </filters>
      </logger>
      <logger name="BusinessException.*" minlevel="Info" writeTo="businessExceptionEventLog,robotElasticBuffer" final="true" />
      <logger name="Robot.*" ruleName="primaryRobotLogsTarget" final="true" writeTo="database,robotElasticBuffer"/>
      <logger name="Monitoring.*" writeTo="monitoring,robotElasticBuffer" minlevel="Warn" final="true" />
      <logger name="Quartz.*" minlevel="Warn" writeTo="eventLogQuartz" final="true" />
      <logger name="*" minlevel="Info" writeTo="eventLog,robotElasticBuffer" />
    </rules>
  </nlog>
  <appSettings>
    <!-- Logs-->
    <add key="Logs.Elasticsearch.MaxResultWindow" value="10000" />
  	<add key="Logs.Elasticsearch.SharedIndex" value="<shared_index_name>" />
  </appSettings>
</configuration>

Hope it will be useful for you.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.