Is there an easy way to change the access log grou...
# help
k
Is there an easy way to change the access log group of the API gateway? it looks like Datadog wants it to start with `aws-gateway`https://docs.datadoghq.com/integrations/amazon_api_gateway/#log-collection
@Frank sorry to ping you just wanted to see if you have any suggestion here
j
@Frank just bringing this up again.
f
@Kujtim Hoxha sorry about the delay. Are you still waiting for this? We can add an option so you can do this.
Copy code
new sst.Api(this, "Api", {
  accessLog: {
    logGroupName: "xxxxxxxx",
    retention: "ONE_WEEK",
  },
});
Let me know.
k
Thanks man
f
Hey @Kujtim Hoxha, I totally forgot you can actually do this today.
Copy code
const logGroup = new logs.LogGroup(this, "LogGroup", {
  logGroupName: "/custom/log/group",
});

new Api(this, "Api", {
  accessLog: {
    destinationArn: logGroup.logGroupArn,
  },
  routes: {
    ...
  },
})