How to remove text styling when importing logs in SumoLogic
Hi,
My logs contain patterns that style/highlight the text (e.g. 33m or 0;39m or 36m) so that certain parts of the text appear with different colours.
EXAMPLE: [33m2018-02-15 13:09:49[0;39m [36m[taskScheduler-1][0;39m
Is there a way for this styling NOT to appear in SumoLogic upon log importing?
Thank you
-
answer presumes you either don't want to remove, or cannot prevent the logs from containing the style text from being written to logs in the first place. I would think that is the easiest/cleanest way..
If the pattern can fit into a regex, it's possible a mask rule would help here. Most frequently masks are used to prevent PII (personally identifiable information) from ingestion, but no reason one can't use them for other undesired text.
Please sign in to leave a comment.
Comments
1 comment