🎄 Happy Holidays! 🥳
Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.
Happy Holidays!
Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.
Is there a way to enable Audit logs in pub sub+ event broker and fetch those logs?
I want to enable audit logging in pubsub event broker which I am running it as docker container. Is there a way to do that? I see Audit logs are there in pubsub cloud but is it available in pub sub event broker?
Best Answer
-
- You could do a "show log command …" in the cli - and you could try this with SEMP… This is not a typical "API"… but hey, it would work. If you want to try this route, ask again.
- You can configure syslog forwarding. If you have a syslog server running outside the solace pod, you can forward these logs to it.
Most probably, this is the typical solution for your concern.
Uli
0 - You could do a "show log command …" in the cli - and you could try this with SEMP… This is not a typical "API"… but hey, it would work. If you want to try this route, ask again.
Answers
-
To answer your question, we need to agree of the meaning of "Audit log".
Just assuming, you want to see each action on the broker config (for example: Someone creates a queue or reset a password or similar) ?
This is available in the docker container in /usr/sw/jail/logs/command.log
Or are you looking for something else ?Uli
0 -
Thank you @uherbst , I am looking for same logs.
I am able to copy files from above location.
Do solace provide any apis to download these logs?0 -
- You could do a "show log command …" in the cli - and you could try this with SEMP… This is not a typical "API"… but hey, it would work. If you want to try this route, ask again.
- You can configure syslog forwarding. If you have a syslog server running outside the solace pod, you can forward these logs to it.
Most probably, this is the typical solution for your concern.
Uli
0 - You could do a "show log command …" in the cli - and you could try this with SEMP… This is not a typical "API"… but hey, it would work. If you want to try this route, ask again.
-
Thank you @uherbst, I was looking for same solution.
The first point you mentioned: I am able to get the logs using cli. However, how can we do it using SEMP api? can you please share few details about it?0