Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
70212da3cb |
@@ -61,7 +61,8 @@ function parseLog()
|
|||||||
if [ "${logger}" = "systemd" ]; then
|
if [ "${logger}" = "systemd" ]; then
|
||||||
# 2022-11-18T20:04:08+0900
|
# 2022-11-18T20:04:08+0900
|
||||||
auth_date=$(echo "${line}" | cut -d " " -f 1);
|
auth_date=$(echo "${line}" | cut -d " " -f 1);
|
||||||
auth_user=$(echo "${line}" | cut -d "]" -f 2 | cut -d " " -f 7 | cut -d "." -f 1);
|
# Note, instead of cut with dot, remove last dot in line
|
||||||
|
auth_user=$(echo "${line}" | cut -d "]" -f 2 | cut -d " " -f 7 | sed -e "s/\.$//");
|
||||||
else
|
else
|
||||||
auth_date=$(echo "${line}" | cut -c 1-6)" ${start_year} "$(echo "${line}" | cut -c 8-15);
|
auth_date=$(echo "${line}" | cut -c 1-6)" ${start_year} "$(echo "${line}" | cut -c 8-15);
|
||||||
auth_user=$(echo "${line}" | cut -d ")" -f 2 | cut -d " " -f 6 | cut -d "(" -f 1);
|
auth_user=$(echo "${line}" | cut -d ")" -f 2 | cut -d " " -f 6 | cut -d "(" -f 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user