Fix hostname and username filters
Modify the default journalctl matches allowing correct behavior(logical AND) of the appended _HOSTNAME and TLOG_USER filters.
This commit is contained in:
parent
e904113eff
commit
142dd4fb6a
1 changed files with 1 additions and 1 deletions
|
|
@ -719,7 +719,7 @@ class View extends React.Component {
|
||||||
* Assumes journalctl is not running.
|
* Assumes journalctl is not running.
|
||||||
*/
|
*/
|
||||||
journalctlStart() {
|
journalctlStart() {
|
||||||
let matches = ["_UID=" + this.uid, "+", "_EXE=/usr/bin/tlog-rec-session", "+", "_EXE=/usr/bin/tlog-rec", "+", "SYSLOG_IDENTIFIER=-tlog-rec-session"];
|
let matches = ["_EXE=/usr/bin/tlog-rec-session", "_EXE=/usr/bin/tlog-rec"];
|
||||||
if (this.state.username && this.state.username !== "") {
|
if (this.state.username && this.state.username !== "") {
|
||||||
matches.push("TLOG_USER=" + this.state.username);
|
matches.push("TLOG_USER=" + this.state.username);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue