Package org.apache.hadoop.fs.s3a.audit

Class S3LogParser

java.lang.Object
org.apache.hadoop.fs.s3a.audit.S3LogParser

@Public @Unstable public final class S3LogParser extends Object
Class to help parse AWS S3 Logs. see https://docs.aws.amazon.com/AmazonS3/latest/userguide/LogFormat.html Getting the regexp right is surprisingly hard; this class does it explicitly and names each group in the process. All group names are included in AWS_LOG_REGEXP_GROUPS in the order within the log entries.