Preventing logging of password

Hi,
When wowza is not able to connect with camera device using RTSP, then it logs username and password information in access and error logs as follows.

Access Log
2021-08-17 17:57:55 UTC comment server WARN 200 - RTPSessionDescriptionDataProviderBasic.getStreamInfo: RTSP/RTP re-streaming. Cannot connect to server: rtsp://Username:Password@IPAddress/axis-media/media.amp - - - 362.974 - - - - - - - - - - - - - - - - - - - - - - - - -

Error Log
WARN server comment 2021-08-17 17:57:55 - - - - - 362.974 - - - - - - - - RTPSessionDescriptionDataProviderBasic.getStreamInfo: RTSP/RTP re-streaming. Cannot connect to server: rtsp://Username:Password@IPAddress/axis-media/media.amp

I have tried using streamFile to rtspRemoveUserInfo, but I think that is not applicable to the logs.

stream file
{
uri: “rtsp://Username:Password@IPAddress/axis-media/media.amp”,
rtspRemoveUserInfo: true
}

My requirement that is to prevent Wowza from logging Username and Password in the logs.

Thanks.

Are you able to disable authentication? Or you need it to authenticate, but you just don’t want it to show?

You could try this as well:

https://www.wowza.com/docs/how-to-troubleshoot-problematic-or-failed-rtsp-streams-between-ip-cameras-and-wowza-streaming-cloud#turn-off-validation-to-prevent-the-camera-from-disconnecting2

Sure I can give it a try.
Want to confirm, it wont effect with the reliability of streams?
We do notify user when there is some issue with the stream.

We cannot disable authentication, we need to authenticate, but do not show in logs.

Ok let me ask for you then…

Ok this is something that would require custom logging work done for axis and we have no way of disabling that right now with standard Streaming Engine.

You could contact Wowza Pro Services or reach out in our Hire a Consultant page to seek some paid assistance. But it will indeed requir some custom work to hide that.

Hope you can get it worked out @Harshvir_Sidhu! Sorry I couldn’t be of more help to you right away.

Thanks for your help in trying to get this confirmed.