This repository has been archived by the owner on Nov 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding hexdump output for debug log level, updated to gosnowth with d…
…ebugging
- Loading branch information
Ben Huson
committed
Jun 22, 2018
1 parent
79b0af0
commit c444a12
Showing
4 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
LOGFILE=$1 | ||
MSGOUTDIR=$2 | ||
|
||
mkdir -p $MSGOUTDIR && cd $MSGOUTDIR; | ||
|
||
# log message format: | ||
# Jun 21 21:04:20 api4-gcp-ia irondb-prometheus-adapter: 00004a10 63 68 65 63 6b 5f 75 75 69 64 22 3a 62 22 63 64 |check_uuid":b"cd| | ||
# will output one ciml_*.log file per metric list flatbuffer message as well as one ciml_*.log.bin binary file per metric list for | ||
# replay | ||
|
||
grep -E ": [a-f0-9]{8}" $LOGFILE | \ | ||
cut -f 1,2,3,4,5 -d ' ' --complement | \ | ||
gawk '/[a-f0-9]{8} .. 00 00 00 43 49 4d 4c/ | ||
{ ++a; fn=sprintf("./ciml_%02d.log", a);} | ||
{print $0 >> fn;}'; | ||
|
||
|
||
cd -; |