Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where will I find access logs of EC2 Instance in AWS?

I need to check who has created the instance or who has stopped/terminated/rebooted instance along with time.

like image 214
sharvil_parekh Avatar asked Oct 23 '15 09:10

sharvil_parekh


People also ask

Where are logs stored in AWS?

To see your log data, sign in to the AWS Management Console, and open the CloudWatch console. In the left navigation pane, choose the Logs tab. Find your log group in the list of groups and open the log group. Your log group name is the Name that you set when you set up logging in the Amazon OpenSearch Service wizard.


1 Answers

For Linux, log files are located under the /var/log directory and its subdirectories. Within this directory there are several log files with different names and which record different types of info. Some examples include, but are not limited to:

/var/log/message
Contains global system messages, including the messages that are logged during system startup. Includes mail, cron, daemon, kern, auth, etc.

/var/log/auth.log
Authenication logs

/var/log/kern.log
Kernel logs

/var/log/cron.log
Crond logs

https://blog.logentries.com/2013/11/where-are-my-aws-logs/

like image 191
Won Jun Bae Avatar answered Nov 05 '22 18:11

Won Jun Bae