Howdy,
Hmm, so it sounds like the only real way is to have uWSGI do it; or beat on the log once on the hard drive. Having a logstash format on uWSGI would be awesome. :) Thanks! -Jason On 9/3/13 7:53 AM, "Roberto De Ioris" <[email protected]> wrote: > >> Howdy, >> >> Will this work for all logs that uWSGI creates, or just access logs? I >> ask because NGINX is handling the access logs; and I only wish to know >>if >> uWSGI errors--and then ship that off correctly. From what I can see, >>this >> is access only. >> > > >logformat is request-only, the stderr is messages based (and they can be >multiline), so unless you can use rsyslog (or directly udp that i think >logstash supports in recent releases) you have to write a specific plugin >for formatting. > >There is the gelf/graylog plugin that already place logs in json, but it >is pretty complex as compression is involved too, so i do not know if >suggesting it as a base would be good advice > >> >> Thanks, >> >> Jason! >> >> On 9/2/13 10:51 AM, "Roberto De Ioris" <[email protected]> wrote: >> >>> >>>> Howdy, >>>> >>>> >>>> I am loving that uWSGI can publish it's own logs to Redis, but sadly >>>> the >>>> data is not formatted for LogStash to index correctly. Is there a a >>>> way >>>> to make the log format JSON and in LogStash format? >>>> >>>> >>>> Thanks!, >>>> Jason Swindle >>>> _______________________________________________ >>>> uWSGI mailing list >>>> [email protected] >>>> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi >>>> >>> >>>Request logs can be formatted: >>> >>>http://uwsgi-docs.readthedocs.org/en/latest/LogFormat.html >>> >>>[uwsgi] >>>logformat = {"foo":"bar", "line":"%(method) %(uri) %(proto)"... } >>> >>>ugly but should works :) >>> >>>-- >>>Roberto De Ioris >>>http://unbit.it >>>_______________________________________________ >>>uWSGI mailing list >>>[email protected] >>>http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi >> >> _______________________________________________ >> uWSGI mailing list >> [email protected] >> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi >> > > >-- >Roberto De Ioris >http://unbit.it >_______________________________________________ >uWSGI mailing list >[email protected] >http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
