extract the value from the log using shell script
With GNU grep:
grep -Po '[^ ]*(?=\.$)' file
or
grep -Po 'user \K[^ ]*' file
With awk:
awk -F "[. ]" '{print $(NF-1)}' file
or
awk -F "user " '{split($2,array," "); print array[1]}' file
or search for field with string user
and print next field:
awk '{for(i=1; i<=NF; i++) if ($i=="user") print $(i+1) }' file
Output:
a8197zz