on ā2015 Aug 07 8:58 PM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
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
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.