Pull opensearch Logs locally that conatin a specific string
Im newer to working with s3 and opensearch but got thrust into trying to solve a logs issue. I know how to pull down a folder from my bucket, but that results in way more logs than i need. I need to pull down only logs with “account_id_pin” in _source.log.data
. Is there a way to write a bash script that would parse logs, and only pull those down? once i have them locally, i just need to add to its value with a script and sync them back. i couldnt find anything in aws. I know theres the dev tools in openSearch but it wont let me run an update_by_query at this level(unless im completely mistaken). I just am trying to avoid having to pull down a bunch of logs that wont be touched.
Pull opensearch Logs locally that conatin a specific string
Im newer to working with s3 and opensearch but got thrust into trying to solve a logs issue. I know how to pull down a folder from my bucket, but that results in way more logs than i need. I need to pull down only logs with “account_id_pin” in _source.log.data
. Is there a way to write a bash script that would parse logs, and only pull those down? once i have them locally, i just need to add to its value with a script and sync them back. i couldnt find anything in aws. I know theres the dev tools in openSearch but it wont let me run an update_by_query at this level(unless im completely mistaken). I just am trying to avoid having to pull down a bunch of logs that wont be touched.