Skip to content

Instantly share code, notes, and snippets.

@xtha
Last active January 25, 2019 09:48
Show Gist options
  • Save xtha/235c8a25f8b8d74709b12b97bbdb159c to your computer and use it in GitHub Desktop.
Save xtha/235c8a25f8b8d74709b12b97bbdb159c to your computer and use it in GitHub Desktop.

priority

0: emerg 1: alert 2: crit 3: err 4: warning 5: notice 6: info 7: debug

demo

[root@ostack05 data]# journalctl -u openstack-nova-compute -p warning --since "10 minutes ago" -o json-pretty
{
        "__CURSOR" : "s=8066466c078540f6a42e5cc31ce8fb0a;i=b3affdf;b=772a9da91b11456689bfdff9813c13d0;m=1d2031de8177;t=57f10f039ccce;x=390c08c4fa2960ab",
        "__REALTIME_TIMESTAMP" : "1547085610077390",
        "__MONOTONIC_TIMESTAMP" : "32024112824695",
        "_BOOT_ID" : "772a9da91b11456689bfdff9813c13d0",
        "SYSLOG_FACILITY" : "3",
        "SYSLOG_IDENTIFIER" : "systemd",
        "UNIT" : "openstack-nova-compute.service",
        "_TRANSPORT" : "journal",
        "_PID" : "1",
        "_UID" : "0",
        "_GID" : "0",
        "_COMM" : "systemd",
        "_EXE" : "/usr/lib/systemd/systemd",
        "_CMDLINE" : "/usr/lib/systemd/systemd --switched-root --system --deserialize 21",
        "_CAP_EFFECTIVE" : "1fffffffff",
        "_SYSTEMD_CGROUP" : "/",
        "_MACHINE_ID" : "08eec295f7284601a0ef770ede9852b7",
        "_HOSTNAME" : "ostack05.yzct.sinochem.cloud",
        "PRIORITY" : "3",
        "CODE_FILE" : "src/core/job.c",
        "CODE_LINE" : "776",
        "CODE_FUNCTION" : "job_log_status_message",
        "MESSAGE_ID" : "be02cf6855d2428ba40df7e9d022f03d",
        "MESSAGE" : "Failed to start OpenStack Nova Compute Server.",
        "RESULT" : "failed",
        "_SOURCE_REALTIME_TIMESTAMP" : "1547085610077265"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment