Created
November 12, 2019 15:43
-
-
Save Asitha/3a641614cfcce8318a1bb0442b736ba2 to your computer and use it in GitHub Desktop.
WSO2 MB Message Tracing ID remapping script for better debugging. Need to run within log folder and the output will be pushed to processed.txt
This file contains hidden or 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
k=0; cp wso2carbon-trace-messages.log processed.txt; for i in $(grep "mapped to andes message" wso2carbon-trace-messages.log | awk '{print $12}'); do k=$((k+1)); sed -i "s/$i/MSG-$k/g" processed.txt; done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment