https://linen.dev logo
#general
Title
# general
v

Vasu

03/22/2023, 4:12 PM
I am running wiremock as a standalone docker container. When logs are forwarded to kibana, it shows up as below which is less than preferred. is there any way we could change the logging format to JSON or any other suggestions
@Tom Could you please help me with this?
t

Tom

03/22/2023, 6:17 PM
Hi @Vasu until we complete https://github.com/wiremock/wiremock/issues/1471 (which wonโ€™t be for a while yet) the best way to customise log output is to turn off the standard logging and create a
PostServeAction
implementation that logs the
ServeEvent
out in whatever format is most convenient for you.
v

Vasu

03/22/2023, 6:18 PM
is there an example that you could help me with which has the above implementation?
t

Tom

03/22/2023, 6:18 PM
Docs for extension points are here: https://wiremock.org/docs/extending-wiremock/
v

Vasu

03/22/2023, 6:19 PM
Thank you very much ๐Ÿ‘ This helps a lot.
5 Views