Skip to content
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

awslogs get /aws/batch/job *d7a784ac4ac440d98d0dcef4f63378c3 #395

Open
Siemens-EDA-DISW-ICE opened this issue Sep 21, 2023 · 0 comments
Open

Comments

@Siemens-EDA-DISW-ICE
Copy link


You've found a bug! Please, raise an issue attaching the following traceback
https://github.com/jorgebastida/awslogs/issues/new

Version:       0.14.0
Python:        3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0]
boto3 version: 1.28.41
Platform:      Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35
Args:          ['/home/ubuntu/.local/bin/awslogs', 'get', '/aws/batch/job', '*d7a784ac4ac440d98d0dcef4f63378c3']
Config: {'aws_access_key_id': 'SENSITIVE', 'aws_secret_access_key': 'SENSITIVE', 'aws_session_token': 'SENSITIVE', 'aws_profile': 'SENSITIVE', 'aws_region': None, 'aws_endpoint_url': None, 'log_group_name': '/aws/batch/job', 'log_stream_name': '*d7a784ac4ac440d98d0dcef4f63378c3', 'filter_pattern': None, 'watch': False, 'watch_interval': 1, 'output_group_enabled': True, 'output_stream_enabled': True, 'output_timestamp_enabled': False, 'output_ingestion_time_enabled': False, 'start': '5m', 'end': None, 'color': 'auto', 'query': None, 'func': 'list_logs'}

Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.10/site-packages/awslogs/bin.py", line 179, in main
    getattr(logs, options.func)()
  File "/home/ubuntu/.local/lib/python3.10/site-packages/awslogs/core.py", line 109, in list_logs
    streams = list(self._get_streams_from_pattern(self.log_group_name, self.log_stream_name))
  File "/home/ubuntu/.local/lib/python3.10/site-packages/awslogs/core.py", line 101, in _get_streams_from_pattern
    reg = re.compile('^{0}'.format(pattern))
  File "/usr/lib/python3.10/re.py", line 251, in compile
    return _compile(pattern, flags)
  File "/usr/lib/python3.10/re.py", line 303, in _compile
    p = sre_compile.compile(pattern, flags)
  File "/usr/lib/python3.10/sre_compile.py", line 788, in compile
    p = sre_parse.parse(p, flags)
  File "/usr/lib/python3.10/sre_parse.py", line 955, in parse
    p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
  File "/usr/lib/python3.10/sre_parse.py", line 444, in _parse_sub
    itemsappend(_parse(source, state, verbose, nested + 1,
  File "/usr/lib/python3.10/sre_parse.py", line 669, in _parse
    raise source.error("nothing to repeat",
re.error: nothing to repeat at position 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant