3 ms·
Here's something I'd very much like: syslog(3) and anything like it that takes printf-style format strings and arguments to log the format string and the argume
by cryptonector 8y ago
Here's something I'd very much like: syslog(3) and anything like it that takes printf-style format strings and arguments to log the format string and the arguments in a structured way.
E.g.,
syslog(LOG_WARN, "this thing %s didn't go well", thing);
should log something like this, using JSON just for this example to show the actual structure:
[<timestamp>,"<hostname>",<pid>,"<ident>","<facility>",<priority>,"this thing %s didn't go well", "<thing>"]
This would make it much easier to recognize structure in log messages and extract details (syslog(3) format string arguments).
Granted, this would have to have happened 20 years ago for it to be widely available now, but still, gotta start somewhere.
- isostatic 8y agoMain issue with syslog (or rather CSVs/TSVs) -- quotes, commas, newlines, backslashes are a bit of a pain when parsing. Apparently knowing how to use things like grep and awk aren't cool nowadays though. Too many people who grew up on windows. I attempted to install centos earlier, after 18 years of dealing with debian-installer, it amazed me how backwards the installer was. All about the clickity-click.
- jlgaddis 8y agoFWIW, you can get back to utopia by passing in the "text" parameter at the very first menu you see (where the default choice is something like "Check media and install CentOS").
- isostatic 8y agoFrom what I could see you can’t even set the network interfaces up in text mode (which is proper text mode, not ncurses)
- jlgaddis 8y agoYou can configure network interfaces (manually or using DHCP) in "text" mode. What you call "proper text mode" is referred to as "cmdline" mode. This mode, also known as "noninteractive" mode, is intended for 100% fully automated / "hands off" installations where everything has already has been defined and/or configured ahead of time. If you need or want to configure some configuration option or network interface or whatever manually at install-time, well, you'll want to pick either "graphical" or "text" instead. (You'll notice that the "luxuries" of text mode -- tmux, ncurses, spacing and alignment of text -- are missing in cmdline mode. If you are able to use cmdline mode, it is only because your installation process has been totally and completely automated, tested extensively, and works flawlessly. If all of that is true, well, you almost certainly aren't staring at the console watching the installation as it takes place and, if no one is watching anyways, why bother spending the effort to make "cmdline" mode anything more than the minimum required -- especially if no one is going to even notice!?)
- c0l0 8y agoWhile CEE isn't developed any more, nothing precludes you from using it for pretty much exactly the purposes you described: http://cee.mitre.org/about/faqs.html#a1 http://cee.mitre.org/about/faqs.html#a1 We're doing so at work (using rsyslog forwarding as a transport for logs and metrics), and are very happy with what we have.
- twic 8y agoSounds a bit like llcpp: https://blapid.github.io/cpp/2017/10/31/llcpp-a-quest-for-faster-logging-intro.html https://blapid.github.io/cpp/2017/10/31/llcpp-a-quest-for-fa... Although that writes binary, not JSON.