Search this blog for other interesting articles

Friday, 16 September 2011

SAP System Log

This article answers following queries:

  • What is System log? How it will be useful?
  • How to check system log in SAP?
  • How to check all remote systems log in SAP?
---------------------------------------------------------------------
System Log:
In an SAP system, for every important action system log will get updated. So, in case of any issues with the system, basis administrators need to check the system log first to identify any errors or warnings.
Many times, we can resolve system issues by checking the system log and searching for relevant notes in the market place using keywords found in the system & applying them.  
In case of issues like update failure, lock table overflow, spool overflow, operating system issues, network issues, table space full issues and other database issues system log will get updated with the error message and the relevant time stamp. By using this timestamp and error message, basis administrator can identify the cause for the issue and can fix the issue.
 Based on the issue and the time stamp in system log, in many cases, you can find out relevant ABAP runtime dumps in ST22 (which provides much more detail about the issue) and the issue can be tackled accordingly.
How to check System Log?
System log can be checked using SM21 transaction code. Login to SAP system and goto SM21 which results in the similar screen as below:





As shown in the above screen, we can mention From date/time and To date/time and we can view system log based on problem classes.
As shown in the above screen there are 3 problem classes

  • Problems Only 
  • Problems and warnings
  • All message
Based on the requirement, any one of the above problem classes can be selected.
By default, User text box is left empty. It means it displays system log related to all the users. In case you would like to view system log of any specific user, you can mention the user id there.
After providing these input selections, to view the system log of the application server on which you have logged on, please click “Reread system log” pushbutton (which was highlighted in red). It displays similar screen as below:




As shown in the above screen, in the system log you can view following information:


  • Time Stamp
  • Type of work process
  • System Number
  • Client Number
  • User id (who executed the transaction)
  • Tcode  executed
  • Priority
  • Text related to the issue
Based on al l the above details, basis administrator can figure out the issue. In most cases, if additional details are required related to dumps, they can check in ST22 transaction.
How to check All remote system logs?
Please note the above process of checking system log is for only one application server (i.e. dialog instance) in which we have logged in.
If your sap system is a distributed system comprising of many instances/application servers, it would be difficult to log in to every instance separately and checking system log. To overcome this, SAP has provided an option of checking all remote system logs (i.e. logs of all instances of an SAP system) in SM21. So, using this by logging into any instance of an SAP system, logs of all other remote instances can be checked. By default, this option is not enabled.
To view “All remote system logs”, navigate as shown in below figure in transaction code SM21





After choosing “All remote system logs” option as above, pls provide selection criteria and click on Reread system log pushbutton to view logs of all instances of an SAP system as shown below








30 comments:

Anonymous said...

Wonderful............

Anonymous said...

Good job done. keep it up..

DurgaPrasad said...

Thanks my friend

vamsi said...

Excellent Posts , please keep up the good work.

Regards,
Vamsi

Anonymous said...

Nice work mate! If u r in Melbourne let me know
Cheers,
Jigneshjani21@hotmail.com

Manoj said...

But in 'All rempote system logs' , how to identify which log is for which instane ?

DurgaPrasad said...

Hi Manoj...In All remote system logs, we can identify which instance that log belongs based on "sap instance" column which is also part of that log.

For example: In the last screenshot of this article, 2nd column indicates the sap instance for which the log belongs.

Anonymous said...

Keep up the good work..
Syed

Anonymous said...

Hi Durga,

Thanks for showing system logs error.

can please explain what the actions should taken when system logs error come.

All also explain some real time error(System Logs)and solution for those errors

Soheb said...

Hi Durga,

You Rock, Just seeing your tutorials I've learnt a lot about Basis Administration.

Thanks & keep up the good work.

God Bless You :)

Thanks once again

Regards,
Soheb Patanwala.

Biswa said...

HI

can u post some document on solution manger 7.1.

Regards,
liku

DurgaPrasad said...

Certainly Biswa! Will post

DurgaPrasad said...

Thanks for your sweet comments and blessings Soheb

DurgaPrasad said...

Thanks dude. Certainly will keep it up

DurgaPrasad said...

Hi Dude,

Action we take depends on the type of issue we encounter in system log.

For eg: If spool overflow error, we may need to run spool cleanup related work
If update deactivated, you may need to activate the update
If communication problems, you may need to check network for any connectivity issues
If license expired, you may need to apply new license etc

DurgaPrasad said...

Thanks much Vamsi

DurgaPrasad said...

Thanks Masood

Anonymous said...

can you pls explain type of N(which is showing in result)

Anonymous said...

Very helpful, thanks a lot !!!

Anonymous said...

Very Helpful doc.Thanks a lot....

Khalid Kamran said...

Many thanks for sharing this wonderful work. Keep the good work going!

Unknown said...

very nice ...

Unknown said...

i think "it is very useful for me"

Anonymous said...

plzzzzz start BasisLabs branch in Kolkata too..

Anonymous said...

M a die_hard fan of your work...got a lot to learn through these tutorials,..really very helpful..keep up the good work..plz start a branch of BasisLabs in kolkata too..:)

Unknown said...

very helpful blog my friend especially like me as a beginner.....Cheers!!!

Unknown said...

Hi Durga Prasad,

Really appreciate your efforts. It is very helpful for all. :)

Unknown said...

Yes Durga Prasad. Your posts are so very helpful.

Unknown said...

What is the process of checking 8/10 months old system logs?
Does SLOG** automatically gets backed up?
if so where can i find those old SLOG** logs?
Thank you in advance.

Unknown said...

very good information

Search this blog for other interesting articles

Please subscribe & activate link received to your email id to receive latest articles

Enter your email address:

Delivered by FeedBurner