About userAgent value in CloudTrail logs

About userAgent value in CloudTrail logs

Share Everywhere

Table of contents

Khi query CloudTrail logs với Athena, sẽ xuất hiện những record kiểu như sau:

1.08,"{type=IAMUser, principalid=xxxxxxxxxx, arn=arn:aws:iam::<accound-id>:user/test, accountid=<accound-id>, invokedby=null, accesskeyid=xxxxxxxxx, username=test, sessioncontext={attributes={mfaauthenticated=true, creationdate=2022-01-18T04:21:20Z}, sessionissuer={type=null, principalid=null, arn=null, accountid=null, username=null}}}",2022-01-18T08:10:38Z,elasticloadbalancing.amazonaws.com,DescribeTargetGroups,ap-northeast-1,54.64.212.247,"EC2ConsoleFrontend, aws-internal/3 aws-sdk-java/1.12.100 Linux/5.4.156-94.273.amzn2int.x86_64 OpenJDK_64-Bit_Server_VM/25.312-b07 java/1.8.0_312 vendor/Oracle_Corporation cfg/retry-mode/standard",,,null,null,,2f2a1253-c840-413f-ac2f-ca9c6b4e224c,5ecfee31-8640-485e-889f-dea6cead0d8c,,AwsApiCall,12/1/2015,TRUE,8.30427E+11,,,,ap-northeast-1,2022

Ta thấy rằng column useragent có giá trị dạng như sau:

EC2ConsoleFrontend, aws-internal/3 aws-sdk-java/1.12.100 Linux/5.4.156-94.273.amzn2int.x86_64 OpenJDK_64-Bit_Server_VM/25.312-b07 java/1.8.0_312 vendor/Oracle_Corporation cfg/retry-mode/standard

=> Agent này có nghĩa là gì?

Trả lời:

As per the cloudtrail documentation [1], useragent field denotes the agent through which the request was made, such as the AWS Management Console, an AWS service, the AWS SDKs or the AWS CLI.

Since the value from your query mentined AWS Internal, I believe this is an action that is initiated by AWS services in the backend.

References:

[1] CloudTrail record contents – https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-record-contents.html

Bạn thấy bài viết này như thế nào?
17 reactions

Add new comment

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Bài viết liên quan

Khám phá FinOps

Khám phá FinOps - công nghệ đám mây

Nhiều doanh nghiệp ngày nay lựa chọn chuyển sang công nghệ đám mây với hi vọng đạt được lợi thế cạnh tranh so với đối thủ nhờ tiềm năng về hiệu quả cao và tiết kiệm chi phí hơn của công nghệ này.
Microservices Roadmap

Microservices Roadmap

- Kafka, RabbitMQ, Amazon SQS: Efficient and reliable message brokers for seamless communication between microservices.
The Data Analyst Roadmap

The Data Analyst Roadmap

**Database Knowledge**: Gain proficiency in working with databases like MySQL, PostgreSQL, or MongoDB.
Architectural patterns in software design

Architectural patterns in software design

Choose the architecture that aligns with your application's unique needs and goals. Each pattern offers a tailored approach to elevate your software system!
Exploring the Technological Marvel Behind Netflix

Exploring the Technological Marvel Behind Netflix

Ever wondered about the tech wizardry that powers your binge-watching adventures on Netflix?