Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does fwd mean in the heroku logs?

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?

like image 471
thank_you Avatar asked Aug 07 '16 22:08

thank_you


People also ask

What are heroku logs?

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.

How do I see heroku errors?

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.

How do you delete heroku logs?

Currently, there is no way to clear the Heroku logs. Heroku maintains a record of the past 1500 lines of log activity.


1 Answers

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.

like image 124
davideghz Avatar answered Sep 25 '22 02:09

davideghz