# Post\_action misses report to error log?

**URL:** <https://www.ruby-forum.com/t/post-action-misses-report-to-error-log/214630>\
**Category:** NGINX\
**Created:** [December 7, 2011, 4:46pm UTC](https://www.ruby-forum.com/t/post-action-misses-report-to-error-log/214630 "2011-12-07T16:46:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [December 7, 2011, 4:46pm UTC](https://www.ruby-forum.com/t/post-action-misses-report-to-error-log/214630/1 "2011-12-07T16:46:38Z")

</div>

Is it possible for the post\_action directive  
[http://wiki.nginx.org/HttpCoreModule#post\_action](http://wiki.nginx.org/HttpCoreModule#post_action) to write any misses to  
the error log? How would i go about setting this up?

Thanks!

Posted at Nginx Forum:

> **[post\_action misses report to error log?](https://forum.nginx.org/read.php?2,219765,219765#msg-219765)**
>
> Is it possible for the post\_action directive http://wiki.nginx.org/HttpCoreModule#post\_action to write any misses to the error log? How would i go about setting this up? Thanks!

---

<div class="post-metadata">

**Author:** ![chrism](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@chrism](https://www.ruby-forum.com/u/chrism)\
**Post date:** [December 7, 2011, 9:02pm UTC](https://www.ruby-forum.com/t/post-action-misses-report-to-error-log/214630/2 "2011-12-07T21:02:14Z")

</div>

On 7 Dez 2011 15h45 WET, [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Is it possible for the post\_action directive  
> [GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com · GitHub](http://wiki.nginx.org/HttpCoreModule#post_action) to write any misses  
> to the error log? How would i go about setting this up?

Hmm. Going out on a limb:

1. Run another Nginx vhost and define a location that proxies passes to  
it. Then check the access log of this vhost.

2. Run a script that writes a log and use the post\_action to hit that  
location with an arg that is the $request\_uri.

3. Use agentzh embedded Lua module [GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com · GitHub](http://wiki.nginx.org/HttpLuaModule)  
and write to a log. Hitting that location with post\_action.

Just random thoughts…

— appa
