refer to:
http://www.cnblogs.com/yjf512/p/4199105.html (use elk+redis to build nginx log analysis platform)