---
title: "用spark分析tomcat日志"
author: "zhanjun"
date: "2016-03-14T08:17:49Z"
tags: []
categories: ["企业架构"]
slug: "spark-tomcat"
draft: false
lastmod: "2016-03-14T08:17:49Z"
id: 2282602
url: "https://zhanjun.iteye.com/blog/2282602"
---

分析tomcat的日志

读tomcat的日志文件,然后输出数据，写一个Streaming的统计程序

1：要求统计TOP 100的 IP

2：统计Top 50 页面PV

3：统计浏览器的类型和版本