I don't really know of any tools out there besides our own offering for 
analytics at New Relic.

  http://newrelic.com/insights

Depending on how big your JSON is, using the response header and mod_headers 
may be an issue as there are limits on how long a response header can be that 
is passed back from daemon mode.

In mod_wsgi < 4.1.X, that limit is hardwired at about 8192 bytes. In 4.1.X it 
defaults to 32Kb but is also configurable using an option to WSGIDaemonProcess.

Graham

On 04/06/2014, at 2:08 AM, Jason Garber <[email protected]> wrote:

> Hey Graham,
> 
> Thanks for the feedback. 
> 
> What are your thoughts on a good logging solution beyond apache error log for 
> daemon threads?  I would like to emit events (json encoded one per line) such 
> as when a given user logs in, starts a purchase, has an exception, or other 
> stuff.
> 
>   I can get great analytics from this data using splunk but need a better 
> mechanism for writing messages in a contention-free way.  Before examining 
> heavyweight tools more closely do you have any thoughts?
> 
> On Jun 2, 2014 8:04 PM, "Graham Dumpleton" <[email protected]> wrote:
> 
> On 03/06/2014, at 6:24 AM, Jason Garber <[email protected]> wrote:
> 
>> Hi Graham,
>> 
>> I have the need to set an Apache Note from Python/mod_wsgi so that 
>> application information can be reflected in the apache log file.
>> 
>> In PHP, we have used http://www.php.net/manual/en/function.apache-note.php
>> 
>> Is it possible to do this with the existing mod_wsgi implementation?  If it 
>> is not, what are your thoughts on the feasibility of that feature?
> 
> The problem with these sort of interactions is that they will only generally 
> work in embedded mode and so I have avoided doing any more in depth 
> interaction with Apache request object.
> 
> That said, if using Apache 2.4.7 or later, the mod_headers module now has the 
> ability to set an note on the request object based on a response header.
> 
> This could feasibly be used.
> 
> The only problem with that idea though is:
> 
> https://github.com/GrahamDumpleton/mod_wsgi/issues/5
> 
> For some reason the response headers out of daemon mode aren't visible to 
> mod_headers.
> 
> If I can work out why that is and fix it, that would mean should then work 
> for daemon mode.
> 
> So if you using Apache 2.4.7+, at least maybe try the idea with embedded mode 
> and see if it can work and let me know.
> 
> Graham
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/modwsgi.
> For more options, visit https://groups.google.com/d/optout.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/modwsgi.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to