Anonymising the usernames of users in imported logs

Anonymising the usernames of users in imported logs:
I mean that logs are exported from IIS for example and contain the user identifiers :
such user has visited such page at such time.
I wish to anonimize the user ids of these users in the imported logs

N.B: I do not mean the matomo users