# Connecting UiPath to Elastic

**URL:** <https://discuss.elastic.co/t/connecting-uipath-to-elastic/278288>\
**Category:** Elasticsearch\
**Created:** [July 9, 2021, 3:10pm UTC](https://discuss.elastic.co/t/connecting-uipath-to-elastic/278288 "2021-07-09T15:10:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dzious](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@Dzious](https://discuss.elastic.co/u/Dzious)\
**Post date:** [July 9, 2021, 3:10pm UTC](https://discuss.elastic.co/t/connecting-uipath-to-elastic/278288/1 "2021-07-09T15:10:34Z")

</div>

Hi,  
I've been struggling for a while now trying to connect UiPath/Orchestrator to Elastic.  
On [their documentation](https://docs.uipath.com/installation-and-upgrade/docs/uipath-orchestrator-dll-config#elasticsearch) 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 !

---

<div class="post-metadata">

**Author:** ![Dzious](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@Dzious](https://discuss.elastic.co/u/Dzious)\
**Post date:** [July 21, 2021, 3:03pm UTC](https://discuss.elastic.co/t/connecting-uipath-to-elastic/278288/2 "2021-07-21T15:03:22Z")

</div>

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

```auto
<?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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 18, 2021, 3:03pm UTC](https://discuss.elastic.co/t/connecting-uipath-to-elastic/278288/3 "2021-08-18T15:03:28Z")

</div>

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