Solved

How and where do I set and check the server logs

Posted on 2014-09-03
6
244 Views
Last Modified: 2014-11-12
How and where do I set and check the server logs when hosting on Amazon Web Service.

what is best way to Check and verify  data
0
Comment
Question by:jgdvishnu
  • 3
  • 2
6 Comments
 
LVL 5

Assisted Solution

by:Sir Learnalot
Sir Learnalot earned 250 total points
ID: 40306441
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


Depending on the web service you are using from Amazon, the location of those logs differ. What AWS are you using?
0
 
LVL 5

Expert Comment

by:Sir Learnalot
ID: 40306474
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.loggingS3.title.html

Dunno if this one helps, like I said depends on what AWS you are using
0
 
LVL 32

Accepted Solution

by:
shalomc earned 250 total points
ID: 40311051
If you talk about servers on EC2, then their logs behave exactly like for servers in your datacenter.
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

Author Comment

by:jgdvishnu
ID: 40313570
Thanks Shalomc & LearnALot,

2 issues:-
1) suppose I am user1 logged into AWS console what I need to do is to check the application logs on snapshot.logs from the browser instead of logging from Unix.


2) on the unix AWS server with same user id when I ran Cron Job I do not see  application logs statements that I am trying to print through the log4J. However, I see exception as "Failed to open PAM security session" in var/log/*.log

It does print logs when I run manually.
0
 

Author Comment

by:jgdvishnu
ID: 40314525
I guess this is separate issues I will post a fresh question. Thannks
0
 

Author Closing Comment

by:jgdvishnu
ID: 40314531
this solution pointed me to right direction.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

As companies replace their old PBX phone systems with Unified IP Communications, many are finding out that legacy applications such as fax do not work well with VoIP. Fortunately, Cloud Faxing provides a cost-effective alternative that works over an…
Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This Micro Tutorial will explain how to export DynamoDB tables in Amazon Web Services.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now