Forum Stats

  • 3,758,243 Users
  • 2,251,358 Discussions
  • 7,870,124 Comments

Discussions

When do you use restapi.log in <deployment_dir>/var/log?

User51642 Yong Huang
User51642 Yong Huang Member Posts: 147 Blue Ribbon

GoldenGate diligently records into restapi.log in <deployment_dir>/var/log its web console actions (if I interpret the content right). Did anybody ever find this content useful in troubleshooting? In what circumstance? Thanks.

For example, mine is like

2021-08-03 09:37:20.472-0500 INFO |RestAPI.distsrvr                   | Request #386279: {
                                                                            "context": {
                                                                                "httpContextKey": 140517282996064,
                                                                                "verbId": 2,
                                                                                "verb": "GET",
                                                                                "originalVerb": "GET",
                                                                                "uri": "/services/v2/sources",
                                                                                "protocol": "http",
                                                                                "headers": {
                                                                                    "Accept": "application/json",
                                                                                    "Authorization": "** Masked **",
                                                                                    "Cookie": "** Masked **",
                                                                                    "User-Agent": "Java/1.8.0_231",
                                                                                    "Host": "[our host]:9102",
                                                                                    "Connection": "keep-alive"
                                                                                },
                                                                                "host": "[our host]:9102",

...
                                                                        Response: {
                                                                            "context": {
                                                                                "httpContextKey": 140517282996064,
                                                                                "requestId": 781838,
                                                                                "code": "200 OK",
                                                                                "headers": {

...

Best Answer

Answers