IP Address tracking

Is there a way to view the IP address of a device sending me data? I have a device that is not accessible from my location and it is not using a static IP address. I have changed the location of my database and i need to change the sending path to the new location but i do not know the IP address of the device to connect with an SSH client. I have access to the old database still and it is still sending to the old database so i am wondering if there is a way for me to view the IP address while on the old database.

@Don213 You are going to need to give me a bit more information to help you. So from the above I get that you have moved your InfluxDB installation to a new machine, and you need to point your clients to it?

That is correct. I don’t have access to the machine from where i am at right now and so i wanted to use the old database to tell me the address of the machine sending data so that i can point the data in the direction of the new database.

@Don213 You should be able to see the IP in the logs:

[httpd] <IP> - <USER> [07/Jul/2017:17:06:20 -0400] "POST /write?consistency=&db=<DB>&precision=ns&rp= HTTP/1.1" 204 0 "-" "InfluxDBClient" 205bd857-6358-11e7-9f87-000000000000 1261
[httpd] <IP> - <USER> [07/Jul/2017:17:06:21 -0400] "POST /write?consistency=&db=<DB>&precision=ns&rp= HTTP/1.1" 204 0 "-" "InfluxDBClient" 20dbc364-6358-11e7-9f88-000000000000 1073
[httpd] <IP> - <USER> [07/Jul/2017:17:06:21 -0400] "POST /write?consistency=&db=<DB>&precision=ns&rp= HTTP/1.1" 204 0 "-" "InfluxDBClient" 20f3ccb5-6358-11e7-9f89-000000000000 1057

How do i get to the logs? I believe they are recorded in a file correct? Or is there a live feed for the logs?

I was able to find a post request from the device, but it is showing the IP address of the network, not the device itself.

@Don213 I don’t know what else I can do to help out here. Sorry!