Add log fields logs are not showing in “/odata/robotlogs” response, how can I see the custom log fields in the json output response, Do I need to pass anything in “$select” parameter?
The rawmessage field will contain the custom log fields as well in it…
We have to get from them
Hope this helps
Cheers
Thank you for replying, How do I show these fields in the kibana, earlier we were having the on premise setup and nlog mechanism but now we moved to the cloud, I’m using API call to send the robot logs to elastic server index, but I’m stuck in the showing the custom logs on the kibana dashboard.
Can you please check this
https://docs.uipath.com/insights/automation-cloud/latest/user-guide/elasticsearch
Cheers
Do you know how to get all column values from the /odata/robotlogs API call of Ui path ?
I’m seeing the difference between CSV exported file values and API call response values.
CSV export headers : level logger user levelOrdinal timeStamp Source tenantId organizationUnitId message logType fingerprint windowsIdentity machineName processName processVersion jobId robotName machineId fileName indexName transactionExecutionTime totalExecutionTimeInSeconds rawMessage tenantKey userKey transactionStatus transactionState transactionId queueName processingExceptionType processingExceptionReason queueItemPriority queueItemReviewStatus activityInfo logF_BusinessProcessName
API call response headers:
‘Level’: ‘Info’, ‘WindowsIdentity’, ‘ProcessName’: , ‘TimeStamp’, ‘Message’, ‘JobKey’, ‘RawMessage’: ‘{“message”,“level”,“logType”,“timeStamp”,“fingerprint”",“windowsIdentity”,“machineName”,“fileName”,“processName”:,“processVersion”,“jobId”,“robotName”,“machineId”,“organizationUnitId”}’, ‘RobotName’, ‘HostMachineName’, ‘MachineId’, ‘RuntimeType’, ‘Id’
This is the difference I’m seeing, I have referred Ui Path API documentation but not much information on this.
Did you happen to check this?
Trnasaction status and all comes from a different api…
Please check yhe screenshot procided
To be speciifc you can get history of the item and it would have details…
Total time execution are computed values you can compute them as well
Cheers
Issue is resolved, I have just added if else condition while assigning the values for custom log fields, because they are not present in the every logs, if the value is present in the logs then assign it else assign nothing to the variable, it worked!