Inside the heroku logs, I have the following line...
Aug 06 21:50:18 coolApp heroku/router: at=info method=GET path="/about.jpg" host=coolapp.com fwd="78.7.88.177,643.198.55.55" dyno=web.1 connect=0ms service=43ms status=500 bytes=420
My question is what does fwd
represent? I see they are IP addresses. Are they IP addresses from the user?
A Heroku app's logs come from the output streams of all of its running processes, system components, and backing services. Heroku's Logplex routes log streams from all sources into a single channel, providing a foundation for comprehensive logging.
Simply use heroku logs to display the last 100 lines of your logs. Heroku only saves the last 1500 lines of logs, which you can access using heroku logs -n 1500 . If you want more logging, check out Heroku add-ons like Logentries or Papertrail.
Currently, there is no way to clear the Heroku logs. Heroku maintains a record of the past 1500 lines of log activity.
From heroku docs:
fwd
: HTTP request X-Forwarded-For
header value
From Wikipedia:
The X-Forwarded-For
(XFF) HTTP header field is a common method for identifying the originating IP address of a client connecting to a web server through an HTTP proxy or load balancer.
So I think you are right when the http requests are from a user's browser.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With