meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:bash:start [2026/06/11 14:37] titannetlinux:bash:start [2026/06/11 16:11] (current) titannet
Line 59: Line 59:
 | visidata | search tabular/log files | | visidata | search tabular/log files |
  
-===== Visidata ===== 
  
  
Line 65: Line 64:
  
 <source bash> <source bash>
 +<nowiki>
 sudo awk '{print $1" "$2" "$3, $4, $5, substr($0, index($0,$6))}' /var/log/auth.log | jq -R -c 'split(" ") | {timestamp: (.[0]+" "+.[1]+" "+.[2]), hostname: .[3], process: .[4], message: .[5:] | join(" ")}' > auth.json sudo awk '{print $1" "$2" "$3, $4, $5, substr($0, index($0,$6))}' /var/log/auth.log | jq -R -c 'split(" ") | {timestamp: (.[0]+" "+.[1]+" "+.[2]), hostname: .[3], process: .[4], message: .[5:] | join(" ")}' > auth.json
 +</nowiki>
 </source> </source>