View Single Post
  #3   (View Single Post)  
Old 21st November 2011
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

Examples of a journal log entry:

Code:
  MESSAGE_ID=c686f3b205dd48e0b43ceb6eda479721
  MESSAGE=User harald logged in
  LOGIN_USER=500
  SEAT=seat0
  _SERVICE=systemd-logind.service
  _EXE=/lib/systemd/systemd-logind
  _COMM=systemd-logind
  _CMDLINE=/lib/systemd/systemd-logind
  _PID=4711
  _UID=0
  _GID=0
  _SYSTEMD_CGROUP=/system/systemd-logind.service
  _CGROUPS=cpu:/system/systemd-logind.service
  PRIORITY=6
  _BOOT_ID=422bc3d271414bc8bc95870f222f24a9
  _MACHINE_ID=a91663387a90b89f185d4e860067801a
  _HOSTNAME=waldi
  LOGIN_USER=500
Code:
  MESSAGE_ID=c2c90533e0614ac2964085462f5fe730
  MESSAGE=Sector 4365345 bad: IO error during read operation
  _DRIVER=ahci
  _DEVICE=b8:0
  _SUBSYSTEM=block
  _NODE=/dev/sda
  _UDEV_SYMLINKS=/dev/by-uuid/47111-2i4325-435345 /dev/by-path/pci-32i74625
  SECTOR=4365345
  SMART_BLOB
  [64bit LE int buffer length][buffer]
  _BOOT_ID=422bc3d271414bc8bc95870f222f24a9
  _MACHINE_ID=a91663387a90b89f185d4e860067801a
  _HOSTNAME=waldi
  PRIORITY=2
un-grepable, un-awkable, un-tailable, un-lessable, un-trivially-scriptable, un-just-about-anything-else-you-would-expect-a-unix-system-to-be-able-to-doable

Upside:
At least it's not a binary format ... Although it doesn't really matter like this ...
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote