mirror of
https://github.com/tstack/lnav.git
synced 2024-09-11 13:05:51 +03:00
[journald] more tweaks
This commit is contained in:
parent
f028ea0598
commit
a567549a0a
@ -10,7 +10,7 @@
|
||||
FROM (SELECT parse_url($1) AS url)
|
||||
|
||||
;SELECT
|
||||
printf(':sh journalctl --output=json -f %s %s # %s',
|
||||
printf(':sh journalctl --output=json -f %s %s',
|
||||
CASE $jhost
|
||||
WHEN 'localhost' THEN
|
||||
''
|
||||
@ -20,16 +20,14 @@
|
||||
(SELECT group_concat(
|
||||
CASE length(key)
|
||||
WHEN 1 THEN
|
||||
'-'
|
||||
'-' || key || ' '
|
||||
ELSE
|
||||
'--'
|
||||
'--' || key || '='
|
||||
END ||
|
||||
key ||
|
||||
'=' || value,
|
||||
value,
|
||||
' ')
|
||||
FROM json_each($jparams)
|
||||
),
|
||||
parse_url($1)
|
||||
)
|
||||
) AS cmds
|
||||
|
||||
:eval ${cmds}
|
||||
|
Loading…
Reference in New Issue
Block a user