Skip to content

Instantly share code, notes, and snippets.

@TeddybearCrisis
Last active November 6, 2019 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TeddybearCrisis/32ce1f43e5d13f670140e028483b3fa6 to your computer and use it in GitHub Desktop.
Save TeddybearCrisis/32ce1f43e5d13f670140e028483b3fa6 to your computer and use it in GitHub Desktop.
PyCharm Log Regex Pattern
2019-11-05 19:22:59,120 [DEBUG] s3transfer.tasks: Exception raised.
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/s3transfer/tasks.py", line 255, in _main
self._submit(transfer_future=transfer_future, **kwargs)
File "/usr/local/lib/python3.7/site-packages/s3transfer/download.py", line 345, in _submit
**transfer_future.meta.call_args.extra_args
File "/usr/local/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/usr/local/lib/python3.7/site-packages/botocore/client.py", line 661, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (403) when calling the HeadObject operation: Forbidden
2019-11-05 19:22:59,121 [DEBUG] s3transfer.utils: Releasing acquire 0/None
2019-11-05 19:22:59,121 [ERROR] socr.util.web.S3: An error occurred (403) when calling the HeadObject operation: Forbidden
2019-11-05 19:22:59,121 [INFO] socr.app.controller.SocrApp: Serving SOCR with params (debug: False, output_dir: 'socr_temp/80', external_port: 80)
2019-11-05 19:22:59,121 [DEBUG] socr.app.controller.SocrServer: Initializing SOCR Server
[Name]
Python Logs
[Message pattern]
^(\d{4}-\d{2}-\d{2}\s[\S]+)\s\[?(\w+)\]?\s(.*)
[Message start pattern]
^\d{4}-\d{2}-\d{2}\s[\S]+
[Time format]
yyyy-MM-dd HH:mm:ss,SSS
[Time capture group]
1
[Severity capture group]
2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment