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

How do I use hyphenated characters in filter pattern properties? #381

Closed
alsdud154 opened this issue Dec 13, 2022 · 3 comments
Closed

How do I use hyphenated characters in filter pattern properties? #381

alsdud154 opened this issue Dec 13, 2022 · 3 comments

Comments

@alsdud154
Copy link

alsdud154 commented Dec 13, 2022

I want to filter the thread name.
Thread names contain characters that contain hyphens.
How do I use hyphenated characters in filter pattern properties?
I want to filter only ORDER-ITEM-1 in the red area as shown in the image.

This is the code I tried.
awslogs get /ecs/cafe24-webhook ALL --s='3h' --profile cafe24 --filter-pattern "ORDER ITEM 1"

This is the code I want. But the filter doesn't work.
awslogs get /ecs/cafe24-webhook ALL --s='3h' --profile cafe24 --filter-pattern "ORDER-ITEM-1"

image

@leonroy
Copy link

leonroy commented May 16, 2023

having this issue too...

@alsdud154
Copy link
Author

I was able to solve it by writing single quotes -> double quotes in filter-pattern.

awslogs get /ecs/cafe24-webhook ALL --s='3h' --profile cafe24 --filter-pattern='"ORDER-ITEM-1"'

@alsdud154
Copy link
Author

having this issue too...

I left a workaround.

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

2 participants