Find out what IP address a certain REST API request is coming from.
This information is not logged in httperr, stderr, or the conductor.log file.
The Jetty request log can be enabled by editing the start.ini file located within the Datameer installation folder. Add the following textblock to the bottom of the file:
# Module: requestlog
## Request Log Configuration
# Filename for Request Log output (relative to jetty.base)
# Date format for rollovered files (uses SimpleDateFormat syntax)
# How many days to retain the logs
# If an existing log with the same name is found, just append to it
# Use the extended log output
# Log http cookie information as well
This will create a new log file within the <Datameer Installation>/logs folder with a name of the format yyyy_mm_dd.request.log. The log file will contain all HTTP requests received by Jetty along with the IP address associated with the request.
Sample log output:
0:0:0:0:0:0:0:1 - - [16/Jun/2020:21:38:11 +0000] "GET / HTTP/1.1" 302 -
0:0:0:0:0:0:0:1 - - [16/Jun/2020:21:38:11 +0000] "GET /login HTTP/1.1" 200 -
Where the first entry in each log line is the IP address the request came from.