amazon web services - Filter log streams in aws cloudwatch -


is there anyway filter log streams patterns using cloudwatch console?

for example, have following log streams in log group - log group:

'/var/prod/logs'.

log streams:

/prod/[node_instance_id]/nginx_access
/prod/[node_instance_id]/nginx_error

i have multi-node environment auto scaling etc. log streams can quite messy - here example of see in log streams.

/prod/1a2b3c4d5e/nginx_access
/prod/1a2b3c4d5e/nginx_error
/prod/1b2b3c4d5e/nginx_access
/prod/1b2b3c4d5e/nginx_error
/prod/1c2b3c4d5e/nginx_access
/prod/1c2b3c4d5e/nginx_error

i trying filter log streams 'nginx_access' only. console, looks can specify prefix. there anyway filter log streams using '*nginx_access'?

the describelogstreams api supports filtering prefix, , console listing log streams api. not possible filter other prefix.

the best practice in case use 2 log groups, 1 each type:

  • /var/prod/nginx_access
  • /var/prod/nginx_error

that way can navigate logs first choosing appropriate log group, , searching instance id prefix filter.


Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -