I don’t understand how filter-pattern works for logs.
For example, I want to see logs that have my name, for example:
2024-01-07T08:49:22.519 DEBUG — [uncthread390] l.s.l.i.version_manager : > 2024-01-07T08:49:17.111Z b58fb2fc-7453-4b4c-a3eb-dd405f4ed919 INFO “ALEX processSinglePlayerEvents”
How should I set filter pattern? I know log-group-name. This is my command:
agolovan@Laptop-11123:~$ awslocal logs filter-log-events --log-group-name /aws/lambda/player-system-local-receivePlayerEvents --filter-pattern “{$.INFO = "ALEX"}” --region us-west-2
{
“events”: ,
“searchedLogStreams”: [
the filter currently only supports the json-property filter pattern, and this feature is only available in the pro version. Please check our docs, where you can find a sample.
We have PRO version and I was looking into documents:
awslocal logs filter-log-events --log-group-name test-filter --filter-pattern “{$.foo = "bar"}”
What is $.foo here?
Again, if I have log like that and would like to filter for that, how my filter should look?
2024-01-07T08:49:22.519 DEBUG — [uncthread390] l.s.l.i.version_manager : > 2024-01-07T08:49:17.111Z b58fb2fc-7453-4b4c-a3eb-dd405f4ed919 INFO “ALEX processSinglePlayerEvents”