Solved

How and where do I set and check the server logs

Posted on 2014-09-03
6
250 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Best web interface for online storage 3 95
Detect and combat possible robot 7 107
Contact management 16 206
AWS CLI - Instances, Volumes & Tagging 2 92
Is your company's data protection keeping pace with virtualization? Here are 7 dynamic ways to adapt to rapid breakthroughs in technology.
There is no doubt that cloud is gaining importance. Many of you must have read about this technology and its growing importance. More and more organisations are embracing this technology not forgetting start-ups. The process begins by dipping …
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.
This Micro Tutorial will explain how to export DynamoDB tables in Amazon Web Services.

808 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