title: Filtering AWS CloudWatch raw log events by multiple values / AWS CLI
body: <p>Given the following query on CloudWatch that extracts logs with messages including "entry 1456" <em>(where 1456 is an ID)</em> how should I extend this to take multiple IDs and what is the corresponding CLI command?</p>
  
  <pre><code>fields  @message
  | filter @message like "entry 1456"
  | limit 10
  </code></pre>
  
  <p>To clarify I'd like to filter with multiple IDs, for instance "like 1456|1257|879". But not sure of the format of regex in such case.</p>
  
  <p>And I assume the corresponding CLI command will be sth like:</p>
  
  <pre><code>aws logs filter-log-events 
  --log-group-name group_name
  --app
  --filter-pattern ........
  </code></pre>
  
  <p>Just want to make sure of the best way to formulate this.</p>