首页 > 编程知识 正文

linux journalctl,type journalctl

时间:2023-05-06 15:14:53 阅读:19041 作者:4643

centos7专用的日志管理工具。 该工具从消息中读取信息。 system统一管理所有Unit的启动日志。 在/etc/systemd/journald.conf中,可以使用journalctl命令查看所有日志(内核APP应用程序)。

显示内核日志显示日志CTL-k系统此次启动的日志显示日志CTL-bjournalctl-B- 0系统上次启动的日志显示日志CTL-B- 1最新的10行日志tl -f显示指定进程的日志l _PID=10823某个单元的最新日志journal CTL-uku be-proxy-f http://www.Sina.com /

journal CTL [ options . ] [ matches . ] querythejournal.flags :---systemshowthesystemjournal---- usershowtheuserjournalforthecurrentuserjournalctl [ opowther querythejournal.flags :---systemshowthesystemjournal---- usershowtheuserjournalforthecurrentuserjournalctl [ opowther querythejournal.flags :---systemshowthesystemjournal---usershowtheuserjournalforthecurrentuser-- m---- machachher ntriesnotolderthanthespecifieddate-- u-- until=dateshowentriesnotnewerthanthespecifieddate-- datil=dateshowentriesnowentried esstartingatthespecifiedcursor-- after-cursor=cursorshowentriesafterthespecifiedcursor-- show-cursorpriiitier ll the entor showcurrentbootorthespecifiedboot-- list-bootsshowterseinformationaboutrecordedboots-k-dmesgshowkernelmesssagelogfrooom cifie dunit-- t-- identifier=stringshowentrieswiththespecifiedsyslogidentifier-p entrieswithespecifiedpriority-e-e-- e ager-f-- followfollowthejournal-n-lilinal numberofjournalentriestoshow---no-tailshowalllines, eveninfollowmode-- reverseshowthenewestentriesfirst-- o-- output=stringchangejournaloutputmode (短,短- iso shouthe ) json-pretty,json-sse,cat---- utcexpresstimeincoordinateduniversaltime (utc )。 - x---catalogaddmessageexplanationswhereavailable---no-- fullellipsizefields-- a-- allshowallfields, includinglongandunprintable-- q-- quietdonotshowprivilegewarning-- no-pagerdonotpipeoutputintoapager-- m-mergerger thshowjournalfilesfromdirectory-- file=pathshowjournalfile-- root=rootoperateoncon erootroot---interval=timetimime er ify-key=keyspecifyfssverificationkey-force ypairwith---setup-keys commands 3360-h---- helpshowthishelptext list allocation eld takes-- new-id 128 generate anew 128-- bitid-- disk-usageshowtotaldiskusageofallljournalfiles-- vacum ime=timeremovejournalfilesolderthanspecifieddate---flushflushalljournaldatafrom/run into/var-- headershowjournalheaderinformation-- list-- catalogshowallmessageidsinthecatalog-- dump-catalogshowentriesinthed g数据库----setup-keysgenerateanewfsskeypair---verifyverifyjournalfileconsistency

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。