-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need help in using regex with LOG_VIEWER_PATTERNS #29
Comments
Hmm I see the problem, it because of this: >>> LOG_VIEWER_PATTERNS = ['\d\d\d\d\d\d\d\dT\d\d\d\d\d\dZ#USR=\d#AU=\d#IU=\d#DVC=\d#AD=\d#PD=\d']
>>> reversed_patterns = [x[::-1] for x in LOG_VIEWER_PATTERNS]
>>> reversed_patterns
['d\\=DP#d\\=DA#d\\=CVD#d\\=UI#d\\=UA#d\\=RSU#Zd\\d\\d\\d\\d\\d\\Td\\d\\d\\d\\d\\d\\d\\d\\']
>>> your meanwhile we didn't support yet for complex regex patterns, django-log-viewer/log_viewer/utils.py Lines 55 to 57 in 607b5e4
|
Thanks for coming back. Is a workaround or solution available on how I may achieve to parse that log pattern of mine? If there isn't, I'd like to exclude that log file entirely and only display other log files of mine that are much easier to parse (with |
My
LOG_VIEWER_PATTERNS
settingHow my log looks like on django-log-viewer with this setting (pattern not working as I would hope):
How the log is formatted:
An external test of the same regex pattern I've used with django-log-viewer successfully parses this:
I know I have done something wrong here and would appreciate someone pointing out how I can get this log of mine to split into newlines instead of getting tangled into a single entry in the log viewer. Thanks!
The text was updated successfully, but these errors were encountered: