this post was submitted on 17 Aug 2024
70 points (98.6% liked)
Linux
48624 readers
1247 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
A tool would actually be so good to have, it's such a common thing that we don't even think about it much. You sparked my curiosity so I tried to search if there was one and it seems there is a project out there: loganon, though it's long dead unfortunately
The problem is there's likely not a universal solution that's guaranteed to clean everything in every case.
Cleaning specific logs/configs is much easier when you know what you're dealing with.
Something like anonymizing a Cisco router config is easy enough because it folllows a known format that you can parse and clean.
Building a tool to anonymize some random logs from a specific software is one thing, anonymizing all logs from any software is unlikely.
Either way, it should always be double-checked and tailored to what's being logged.
I agree, besides basic patterns to search for, that will most likely be necessary. In fact looking a bit more at this tool, it has a list of "rules" tailored to each software specifically, I guess this could be sustainable really only if a repository of third party extensions was kept so that anyone could contribute and the pool of rules expanded progressively
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.
vim log
:%s/yourusername/anonusername/g
:%s/yourip/xxx.xxx.xxx.xxx/g
:wq
"boosted" this for visibility. Perhaps random devs will take interest.