# How to log to web services connector?

**URL:** <https://developer.sailpoint.com/discuss/t/how-to-log-to-web-services-connector/13397>\
**Category:** SHF Discussion and Questions\
**Tags:** webservice-connector, rules, sailpoint-identity-security\
**Created:** [June 27, 2023, 5:29pm UTC](https://developer.sailpoint.com/discuss/t/how-to-log-to-web-services-connector/13397 "2023-06-27T17:29:43Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsosa](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/jsosa/32/31578_2.png) [@jsosa](https://developer.sailpoint.com/discuss/u/jsosa)\
**Post date:** [June 27, 2023, 5:29pm UTC](https://developer.sailpoint.com/discuss/t/how-to-log-to-web-services-connector/13397/1 "2023-06-27T17:29:44Z")

</div>

Hi! I uploaded a ws after operations rule, it really do nothing yet, only returns the processedResponseObject object. I log it using log.info(“”) but when run I do not see nothing on log. I tried adding the logger.webservices.name = sailpoint.connector.webservices to log4j and restsarting ccg with no success.  
I enabled connector debug. I can confirm that rule is attached to connector, because if I return null, I get some error on aggregation, and error text mentions rule’s name.

---

<div class="post-metadata">

**Author:** ![sharvari](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@sharvari](https://developer.sailpoint.com/discuss/u/sharvari)\
**Post date:** [June 27, 2023, 5:39pm UTC](https://developer.sailpoint.com/discuss/t/how-to-log-to-web-services-connector/13397/2 "2023-06-27T17:39:08Z")

</div>

Hi Julian,

You seem to be doing the correct steps not sure why you were not able to see logs.

Can you try again by [Enabling Connector Logging in IDN using API](https://community.sailpoint.com/t5/IdentityNow-Articles/Enabling-Connector-Logging-in-IdentityNow/ta-p/188107)

---

<div class="post-metadata">

**Author:** ![jsosa](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/jsosa/32/31578_2.png) [@jsosa](https://developer.sailpoint.com/discuss/u/jsosa)\
**Post date:** [June 27, 2023, 8:14pm UTC](https://developer.sailpoint.com/discuss/t/how-to-log-to-web-services-connector/13397/3 "2023-06-27T20:14:39Z")

</div>

Hi Sharvari thanks for response. I followed suggested link. I got null when getting source logging info. I updated it with

{  
“durationMinutes”: 240,  
“rootLevel”: “INFO”,  
“clientId”: null,  
//“expiration”: “2030-12-15T19:13:36.079Z”,  
“logLevels”: {  
“sailpoint.connector.WebServices”: “INFO”  
}  
}

but received no logging from rule. Rule actually is as simply as:

```
    log.info("XDXDXDXD");
    return processedResponseObject;

```

---

<div class="post-metadata">

**Author:** ![sharvari](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@sharvari](https://developer.sailpoint.com/discuss/u/sharvari)\
**Post date:** [June 28, 2023, 5:16am UTC](https://developer.sailpoint.com/discuss/t/how-to-log-to-web-services-connector/13397/5 "2023-06-28T05:16:10Z")

</div>

If you are confident that the rule is executing, I would suggest you go ahead with the actual changes in the source code you’re planning to make and add more log statements. This will help you locate the logs quickly. Test your rule, most of the times it works. But, incase it doesn’t work as expected and you want to troubleshoot, enable logging at DEBUG level, wait for 5 to 10 mins and then test rule.

If you still face issues with logs not appearing you can open a ticket with Sailpoint support and they will be able to assist you.

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [June 28, 2023, 3:09pm UTC](https://developer.sailpoint.com/discuss/t/how-to-log-to-web-services-connector/13397/6 "2023-06-28T15:09:15Z")

</div>

Hi Julian,

Have you reviewed this topic? [What is the correct way of debugging connector rules](https://developer.sailpoint.com/discuss/t/what-is-the-correct-way-of-debugging-connector-rules/1771)

Also, have you read this doc? [CCG Enable Debug Log by Connector - Compass](https://community.sailpoint.com/t5/Connector-Directory/CCG-Enable-Debug-Log-by-Connector/ta-p/169807)

---

<div class="post-metadata">

**Author:** ![jsosa](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/jsosa/32/31578_2.png) [@jsosa](https://developer.sailpoint.com/discuss/u/jsosa)\
**Post date:** [July 5, 2023, 1:34pm UTC](https://developer.sailpoint.com/discuss/t/how-to-log-to-web-services-connector/13397/8 "2023-07-05T13:34:00Z")

</div>

Hi Colin, I just saw suggested links. Unfortunately I already tried with [CCG Enable Debug Log by Connector - Compass](https://community.sailpoint.com/t5/Connector-Directory/CCG-Enable-Debug-Log-by-Connector/ta-p/169807#_gl=1*juj4v1*_gcl_au*NDYwNzQ4OTYxLjE2ODg0MDQ5OTc). with no luck. Revising [What is the correct way of debugging connector rules](https://developer.sailpoint.com/discuss/t/what-is-the-correct-way-of-debugging-connector-rules/1771) I saw also that tried all suggestions. I have to move logic to a cloud rule, because of project times, but I will return to try the ws rule as soon as I can.

---

<div class="post-metadata">

**Author:** ![jsosa](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/jsosa/32/31578_2.png) [@jsosa](https://developer.sailpoint.com/discuss/u/jsosa)\
**Post date:** [July 5, 2023, 1:36pm UTC](https://developer.sailpoint.com/discuss/t/how-to-log-to-web-services-connector/13397/9 "2023-07-05T13:36:09Z")

</div>

Thanks for the answer Sharvari, I tried all suggestion with no luck. I raised a support ticket, but unfortunately they offer some hours from ES support. As project is at developing stage, they stated that have no support until it goes into production.

---

<div class="post-metadata">

**Author:** ![sharvari](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@sharvari](https://developer.sailpoint.com/discuss/u/sharvari)\
**Post date:** [July 5, 2023, 2:18pm UTC](https://developer.sailpoint.com/discuss/t/how-to-log-to-web-services-connector/13397/10 "2023-07-05T14:18:04Z")

</div>

Oh, Sorry to know it didn’t work for you.

If you get a chance, maybe try the new Web Services SaaS connector. It has an Enable Debug Logging option, but you have to co-ordinate with Sailpoint to got those log files.

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/c/cf1a92456218befe180dfaa954e6011d7d65e867.png)

---

<div class="post-metadata">

**Author:** ![pagarwal4](https://avatars.discourse-cdn.com/v4/letter/p/258eb7/32.png) [@pagarwal4](https://developer.sailpoint.com/discuss/u/pagarwal4)\
**Post date:** [July 20, 2023, 8:21am UTC](https://developer.sailpoint.com/discuss/t/how-to-log-to-web-services-connector/13397/11 "2023-07-20T08:21:28Z")

</div>

Co-ordinating with Sailpoint to get logs shouldn’t be the way as it slows down the whole process. Is there any plan for having those logs available on UI for quick troubleshooting?

---

<div class="post-metadata">

**Author:** ![ksbagade](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ksbagade/32/3306_2.png) [@ksbagade](https://developer.sailpoint.com/discuss/u/ksbagade)\
**Post date:** [July 20, 2023, 5:32pm UTC](https://developer.sailpoint.com/discuss/t/how-to-log-to-web-services-connector/13397/12 "2023-07-20T17:32:18Z")

</div>

Hi @pagarwal4,

I believe the SailPoint CLI allows the [management of logs](https://developer.sailpoint.com/idn/tools/cli/connectors#get-logs) for SaaS Connectors.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![pagarwal4](https://avatars.discourse-cdn.com/v4/letter/p/258eb7/32.png) [@pagarwal4](https://developer.sailpoint.com/discuss/u/pagarwal4)\
**Post date:** [July 21, 2023, 6:10am UTC](https://developer.sailpoint.com/discuss/t/how-to-log-to-web-services-connector/13397/13 "2023-07-21T06:10:18Z")

</div>

Thank you @ksbagade for this input. This does help.

---

<div class="post-metadata">

**Author:** ![jsosa](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/jsosa/32/31578_2.png) [@jsosa](https://developer.sailpoint.com/discuss/u/jsosa)\
**Post date:** [July 21, 2023, 2:45pm UTC](https://developer.sailpoint.com/discuss/t/how-to-log-to-web-services-connector/13397/14 "2023-07-21T14:45:15Z")

</div>

Thanks @ksbagade I will give a try on cli

---

<div class="post-metadata">

**Author:** ![ksbagade](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ksbagade/32/3306_2.png) [@ksbagade](https://developer.sailpoint.com/discuss/u/ksbagade)\
**Post date:** [July 25, 2023, 8:43pm UTC](https://developer.sailpoint.com/discuss/t/how-to-log-to-web-services-connector/13397/15 "2023-07-25T20:43:28Z")

</div>

Hi @jsosa,

Hope you were able to get the logs running!

(Please feel free to mark a response as the solution to close the topic)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [September 23, 2023, 8:43pm UTC](https://developer.sailpoint.com/discuss/t/how-to-log-to-web-services-connector/13397/16 "2023-09-23T20:43:46Z")

</div>

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