Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: Logan Laughlin
Added: Feb 13, 2020 10:25 PM
Views: 103
Tags: comby logs seq
  1.  
  2. -- convert raw logs into space delimited logs
  3.  
  4.  comby -timeout 30 ':[date.] :[hr]::[m]::[s],:[ms] [:[ ]:[thread]][ :[logger]: :[level]] :[message\n]' ':[date] :[hr]::[m]::[s].:[ms] :[thread] :[level] :[logger] :[message]' testlog.log -stdout > combyresults.log
  5.  
  6. -- ingest logs using seqcli
  7.  seqcli ingest -i combyresults.log -p source=comby -x "{@t:timestamp} {ThreadId:nat} {@l:level} {:*}{SourceContext:*} {@m:*}{:n}{@x:*}"