Solved

How and where do I set and check the server logs

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

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

 

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Please provide a few cloud gaming sites 2 155
AWS- KeepAlived notify script not working 23 110
AWS - HAProxy- KeepAlived 5 56
chef or Puppet - Devops career 8 30
For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
The next five years are sure to bring developments that are just astonishing, and we will continue to try to find the balance between connectivity and security. Here are five major technological developments from the last five years and some predict…
This Micro Tutorial will explain how to export DynamoDB tables in Amazon Web Services.
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…

685 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