Many projects ask to share lots of logs when reporting issues. It’s difficult to go through all the logs and redact informarion such as usernames, environment variabled etc.

Any ideas on how to anonymize logs before sharing? Change your username to something generic?

  • subtext@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    2 months ago

    I wonder if you could do something with heuristics or a micro LLM to flag words that might be expected to be private.

    I would be curious if someone could do a proof of concept with the Ollama self-hosted model. Like if you feed it with examples of names, IP addresses, API-key-like-strings, and others, it might be able to read through the whole file and then flag anything with a risk level greater than some threshold.