You are on page 1of 7

6/29/23, 11:49 AM Enabling API Connect Gateway Service Logs in DataPower

Happy Goat for Life!

Buy me a coffee!! 16

ABOUT APICONNECT KUBERNETES API DATAPOWER OPENSHIFT EVENTSTREAMS


INTEGRATION DAY2-OPS CONFERENCE
All opinions expressed here are very much my own or of the author of the article, not those of IBM. All Code provided is
provide as is with no support unless otherwise stated.

Chris Phillips’ Blog - API, Integration and Governance

Apply for a BPI Credit Card


Easily switch to BPI and enjoy up to 300,000 BPI points when yo
90,000. Apply now!

BPI Apply N

Enabling API Connect Gateway Service Logs in


DataPower
Aug 2, 2019 • Category APIConnect by Chris Phillips Buy me a coffee!! 16

Thanks to Sara Hagger

DataPower is the gateway/runtime for API Connect. In order for API Connect to synchronise APIs with the Gateway it uses a new
DataPower piece of function called the API Connect Gateway Service. When you deploy DataPower in Kubernetes with APIC UP a
special log target is configured to store the API Connect Gateway Service logs. However on all other forms of DataPower this is
needs to be enabled.

Viewing the log

If you follow the steps below or you are using DataPower by deployed by APICUP the log file will be available in logtemp:///gwd-
log

Via the Cli

https://chrisphillips-cminion.github.io/apiconnect/2019/08/02/DataPowerDirector-log.html 1/7
6/29/23, 11:49 AM Enabling API Connect Gateway Service Logs in DataPower

Log into the cli either directly via the console or ssh. Run the following commands, where the domain containing the API Connect
Gateway Service is called apiconnect.

top; configure; switch apiconnect; logging target gwd-log


type file
format text
timestamp syslog
size 50000
local-file logtemp:///gwd-log
event apic-gw-service debug
exit
write memory

Via the Web UI

1 - Log into DataPower

https://chrisphillips-cminion.github.io/apiconnect/2019/08/02/DataPowerDirector-log.html 2/7
6/29/23, 11:49 AM Enabling API Connect Gateway Service Logs in DataPower

2 - Go to the domain with the API Connect Gateway Service

3 - Go to the log target

https://chrisphillips-cminion.github.io/apiconnect/2019/08/02/DataPowerDirector-log.html 3/7
6/29/23, 11:49 AM Enabling API Connect Gateway Service Logs in DataPower

4 - Click Add

5 - Set the following properties

Name
File Name - logtemp:///gwd-log
Log Size - 50000

https://chrisphillips-cminion.github.io/apiconnect/2019/08/02/DataPowerDirector-log.html 4/7
6/29/23, 11:49 AM Enabling API Connect Gateway Service Logs in DataPower

6 - Click on Event Subscription

https://chrisphillips-cminion.github.io/apiconnect/2019/08/02/DataPowerDirector-log.html 5/7
6/29/23, 11:49 AM Enabling API Connect Gateway Service Logs in DataPower

7 - Click on Add

8 - Select apic-gw-service with the debug level (feel free to change the level if need be )

9 - Press Done.

10 - Press Apply

ALSO ON CHRISPHILLIPS . BLOG

Custom Client ID and White Paper and Out Of Memory Enable TLS for ACE API Gatew
Client Secret values Deployment Guide (OOMKilled) CertMan, … HTTPS calls after the D

3 years ago • 5 comments 3 years ago • 1 comment 2 years ago • 1 comment 3 years ago • 1 comment 4 years ago
From API Connect V5 and The API Connect White While installing IBM When making calls from The API Ga
onwards users have been Paper I produced for v2018 common services (a preq ACE to https endpoints the placed in a
able to customise the … was often described as … for CP4I) we hit an issue … trust store must contain … placed beh

https://chrisphillips-cminion.github.io/apiconnect/2019/08/02/DataPowerDirector-log.html 6/7
6/29/23, 11:49 AM Enabling API Connect Gateway Service Logs in DataPower

What do you think?


0 Responses

Upvote Funny Love Surprised Sad

0 Comments 
1 Login

G Start the discussion…

LOG IN WITH OR SIGN UP WITH DISQUS ?

Name

 Share Best Newest Oldest

Chris Phillips' Blog

ChrisPhillips
chris.phillips@uk.ibm.com

API, Integration and Governance SME and Enthusiast, My opinions


are very much mine

Buy me a coffee!! 16

Buy me a coffee!! 16

Built on - 2023-06-22 21:27:00 +0000

https://chrisphillips-cminion.github.io/apiconnect/2019/08/02/DataPowerDirector-log.html 7/7

You might also like