You are tasked with querying logs stored in Amazon S3 to gather contextual information related to a security event. Describe the steps you would take to query the logs using Amazon Athena and analyze the results to identify any potential security threats.