Solved

How and where do I set and check the server logs

Posted on 2014-09-03
6
248 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 6

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 6

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 33

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
ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 

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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Big data transfers via information superhighways require special attention and protection. Learn more about the IT-regulations of the country where your server is located. Analyze cloud providers and their encryption systems for safe data transit. S…
Steps to create a PostgreSQL RDS instance in the Amazon cloud. We will cover some of the default settings and show how to connect to the instance once it is up and running.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

930 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

10 Experts available now in Live!

Get 1:1 Help Now