Additional Blogs by SAP
cancel
Showing results for 
Search instead for 
Did you mean: 
KleinM
Employee
Employee
0 Kudos

<body><div class="Section1"><p class="MsoNormal"> </p><p>So you are using the Log Viewer from theNetWeaver Administrator? Did you know that you can filter the logs for a specified time period? If not, this blog is for you.</p><p>Sometimes you need to look into the log files because a user has reported a problem. And sometimes the user says: "the problem occurred yesterday at about 2pm". Well, of course you can scroll down in the log file to the time specified by the user. But this is of course quite cumbersome, especially if you need to look up something which is some days ago.</p><p>But don't worry. There is an easy way to get exactly the log entries for a specified time period. Let me show you what you have do.</p>h3. Starting the NetWeaver Administrator Log Viewer

<p>First of all you have to start Log Viewer. Here is what you have to do:</p><p>1.  Open the following URL in your browser: http://<your_server>:<port>/nwa<br />     Example: http://mywebasjava.sap.corp:50000/nwa</p><p>2.  Now logon with your administrator user</p><p>3.  Navigate to:<br />     NetWeaver 7.0 System: Analysis > Debug > Logs and Traces<br />     NetWeaver 7.1 System: Problem Management > Logs and Traces > Log Viewer</p><p>Here you are. Now let's have a look at how to apply a filter for a specified time period.</p>h3. Filtering for a specified time period

<p>First of all we need to choose a log file to view. Most of the time you will have a look at the Default Trace. That's why I have chosen this one for this example. But of course it works with any other log file as well.</p><img  />//weblogs.sdn.sap.com/weblogs/images/6906/1_NWALGVDT_Show_advanced_filter.png|height=120|alt=image|width=700|src=https://weblogs.sdn.sap.com/weblogs/images/6906/1_NWALGVDT_Show_advanced_filter.png|border=0!<p>After choosing "Default Trace (Java)" click on the button "Show View Properties" button ("Open Filter" on NetWeaver 7.0 systems) to show the filtering options.</p><p>In the row "Filter by Content" choose now the filter "Date & Time".</p><img  />//weblogs.sdn.sap.com/weblogs/images/6906/2_NWALGVDT_select_date_and_time_filter.png|height=312|alt=image|width=290|src=https://weblogs.sdn.sap.com/weblogs/images/6906/2_NWALGVDT_select_date_and_time_filter.png|border=0!<p>Since we want to filter for a specified time period we select "is between". With that we make sure that we can set a start time and a end time for our filter.</p><img  />//weblogs.sdn.sap.com/weblogs/images/6906/3_NWALGVDT_select_is_between.png|height=181|alt=image|width=556|src=https://weblogs.sdn.sap.com/weblogs/images/6906/3_NWALGVDT_select_is_between.png|border=0!<p>Now all you have to do is to set your start date and end date. Here in my example I want to see all log entries which have been created on February 17<sup>th</sup> 2009 between 3:00 pm and 3:30 pm.</p><img  />//weblogs.sdn.sap.com/weblogs/images/6906/4_NWALGVDT_define_between_values_final.png|height=130|alt=image|width=649|src=https://weblogs.sdn.sap.com/weblogs/images/6906/4_NWALGVDT_define_between_values_final.png|border=0!<p>And voila! Here is the result. Now you can see all log entries from the specified time period.</p><img  /></body>

2 Comments