Skip to content

Instantly share code, notes, and snippets.

@Asitha
Created November 12, 2019 15:43
Show Gist options
  • Save Asitha/3a641614cfcce8318a1bb0442b736ba2 to your computer and use it in GitHub Desktop.
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
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