---
title: "对 nginx access log 的ip排序"
author: "pako"
date: "2014-11-02T19:24:08Z"
tags: []
categories: ["操作系统"]
slug: "nginx-access-log-ip"
draft: false
lastmod: "2014-11-02T19:24:08Z"
id: 2151607
url: "https://pako.iteye.com/blog/2151607"
---

```sh
cat access.log | awk '{print $1}'| sort -n | uniq -c | sort -nr | head -20
```