LOGNORMALIZER(1)

πŸ’– LOGNORMALIZER β€” like, the manual page, but make it make sense πŸ’–

okay bestie, sit down, hydrate, because we're about to talk about lognormalizer, a lil User Command from the ✨ lognormalizer 2.0.6 ✨ era (June 2022, if you're keeping track πŸŽ€).

🌸 NAME 🌸

lognormalizer β€” the girl whose whole job is testing and debugging liblognorm rulebases πŸ’…

✨ OPTIONS ✨

okay this is the main character section, no skimming, we're reading all of it fr fr πŸ‘‘

  • -r<rulebase> β€” the rulebase you wanna use. this one is REQUIRED, like not optional, like the party does not start without it, periodt.
  • -H β€” prints a lil summary line for you: the nbr of msgs Handled 🫢
  • -U β€” prints the number of unparsed messages. and like, only if it's non-zero, because we're not doing unnecessary noise here.
  • -e<json|xml|csv|cee-syslog|raw> β€” switches up the output format. default is json, obviously. and raw is exactly like the input, no filter, no makeup, just vibes. super useful when you pair it with -p/-P to extract your known good/bad messages πŸ”₯
  • -E<format> β€” encoder-specific format. this one's for CSV, so go read the docs, bestie, i'm not playing πŸ“š
  • -T β€” includes 'event.tags' in JSON format. cute lil tags, we love her.
  • -oallowRegex β€” allows regexp matching. but read the docs about the performance penalty first, it's giving consequences 😭
  • -oaddRule β€” adds a mockup of the matching rule. a lil fakeout, for science 🧚
  • -oaddRuleLocation β€” adds the location of the matching rule to metadata. so you know where it lives 🏠
  • -oaddExecPath β€” adds the exec_path attribute to output.
  • -oaddOriginalMsg β€” always adds the original message to output, not just in the error case. clingy in the best way πŸ’œ
  • -p β€” print back only if the message has been parsed successfully. a lil filter, a lil slay ✨
  • -P β€” print back only if the message has NOT been parsed successfully. the flop detector, we stan 🫢
  • -L β€” adds source file line number information to unparsed line output. receipts, basically 🧾
  • -t<tag> β€” print back only the messages matching the tag. tag-specific girlies only πŸ’…
  • -v β€” print debug. and when you use it 3 times, it prints the parse DAG. yes, three. count them. no cap.
  • -V β€” print version information. identity check βœ”οΈ
  • -d β€” print DOT file to stdout and exit. that's it, that's the whole thing, bye πŸ‘‹
  • -d<filename> β€” save the DOT file to the filename instead. same energy, different destination.
  • -s<filename> β€” print parse dag statistics and exit πŸ“Š
  • -S<filename> β€” print extended parse dag statistics and exit. and yes, it includes -s, so it's the deluxe version, the upgraded package, the ✨iconic✨ one.
  • -x<filename> β€” print statistics as a dot file (called only). lowercase energy, very specific purpose πŸŽ€

and that's the whole page, bestie!! this was lognormalizer 2.0.6, dated June 2022, from the User Commands corner of the manual-verse 🌈 go parse something good, drink water, and remember: if your messages aren't parsing, it's not you, it's the rulebase πŸ’–βœ¨πŸ¦‹