cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to setup HTTPS logging in SAP WEB DISPATCHER

Former Member
0 Likes
1,909

Dear Experts,

Could you please help me in showing how to set up HTTPS logging inbound and outbound in sap web dispatcher

Can we record which requests coming into the web dispatcher and going out from web dispatcher? will recorded log file shows ip addresses, the links...? Do we have to use any other tools to record this information?

I tried following few sap help sites and created 2 parameters, but its not helping me at all. Eventhough they are http logging parameters its not helping in recording to log http requests also. No log file is being created.

Parameters I created:

icm/HTTP/logging_0 =  PREFIX=/, LOGFILE=D:\usr\sap\BW1\W00\work\Inbound\access_log-%d-%m-%y_%h:%t:%s, SWITCHTF=day, LOGFORMAT=SAP

icm/HTTP/logging_client_0 =  PREFIX=/, LOGFILE=D:\usr\sap\BW1\W00\work\Outbound\access1_log1-%d-%m-%y_%h:%t:%s, SWITCHTF=day, LOGFORMAT=SAP

Really appreciate your help, Thanks in advance.

Thanks,

Surya

View Entire Topic
Isaias_SAP
Product and Topic Expert
Product and Topic Expert
0 Likes

Dear Surya,

The parameter "icm/HTTP/logging_X" is the way to gather the information you are looking for.

Maybe you should define a different "LOGFORMAT"?

Regards,

Isaías

Former Member
0 Likes

Thanks Isaias for quick reply,

I tried 2 other formats SAPSMD and SAPSMD2 just now and restarted, its not working. the file itself is not creating, Could you please check whether I made any mistake in syntax or something. Everything else in web dispatcher is working other than this functionality.

Regards,

Surya

Isaias_SAP
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello Surya,

Try changing the parameter to:

icm/HTTP/logging_0 =  PREFIX=/, LOGFILE=inbound_log-%d-%m-%y, SWITCHTF=day, LOGFORMAT=CLFMOD

Since "SWITCHTF=day", I don't see why add "%h:%t:%s" to the filename.

I believe that the "CLFMOD" format will give the information you want.

And the "inbound_log..." files will be written to the Web Dispatcher "work" folder.

Regards,

Isaías

Former Member
0 Likes

Thanks a lot Isaias, It worked like a charm.

I will mark you as helpful answer

Could you please clarify one last thing for me :

1. Will this parameter be able work for https requests, I ran one https inbound and I have seen the below in the log file, Is this format what we see for https requests or we have to change parameter?

"GET /sap/public/bsp/sap/htmlb/event_dictionary.js HTTP/1.1" 304 0

- - [07/Aug/2015:17:02:53 -0400] "GET /sap/public/bsp/sap/htmlb/events.js HTTP/1.1" 304 0

x.x.x.x- - [07/Aug/2015:17:02:53 -0400] "GET /sap/public/bc/ur/Design2008/js/popup_nn7.js HTTP/1.1" 304 0

x.x.x.x- - [07/Aug/2015:17:02:53 -0400] "GET /sap/public/bc/ur/Design2008/themes/sap_tradeshow/ur/ur_nn7.css HTTP/1.1" 304 0

x.x.x.x- - [07/Aug/2015:17:02:53 -0400] "GET /sap/public/bc/ur/Design2008/js/sapUrMapi_nn7.js HTTP/1.1" 304 0

when I ran http inbound, I got this as shown below:

x.x.x.x  - webadm [07/Aug/2015:17:04:27 -0400] "GET /sap/admin/icp/navData.icp HTTP/1.1" 200 5482

what is this 304 and 200 responses, Appreciate your reply

x.x.x.x is the ip address

Thanks,

Surya

Isaias_SAP
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello Surya,

You're welcome!

If you are opening the HTTPS port with "icm/server_port_X = PROT=HTTPS, ...", that is how the log will look like. Opening the port with "PROT=ROUTER" will make the logging impossible.

Notice that "HTTP/1.1" is just the HTTP protocol version used. It does not relate to whether the user is using HTTP or HTTPS to connect.

The 304 and 200 are standard HTTP return codes.

Regards,

Isaías

Former Member
0 Likes

Thanks Isaias again, It helped

Regards,

Surya