<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>日志统计 on 心之所向 素履所往</title>
		<link>http://www.mi-dong.com/tags/%E6%97%A5%E5%BF%97%E7%BB%9F%E8%AE%A1/</link>
		<description>Recent content in 日志统计 on 心之所向 素履所往</description>
		<generator>Hugo</generator>
		<language>zh</language>
		
		
		
			<copyright>All rights reserved - 2026</copyright>
		
		
			<lastBuildDate>Sat, 13 Aug 2022 10:46:48 +0800</lastBuildDate>
		
			<atom:link href="http://www.mi-dong.com/tags/%E6%97%A5%E5%BF%97%E7%BB%9F%E8%AE%A1/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>日志统计方法</title>
				<link>http://www.mi-dong.com/post/linux/%E6%97%A5%E5%BF%97%E7%BB%9F%E8%AE%A1%E6%96%B9%E6%B3%95/</link>
				<pubDate>Sat, 13 Aug 2022 10:46:48 +0800</pubDate>
				<guid>http://www.mi-dong.com/post/linux/%E6%97%A5%E5%BF%97%E7%BB%9F%E8%AE%A1%E6%96%B9%E6%B3%95/</guid>
				<description>&lt;h3 id=&#34;统计在某个时段api的请求量&#34;&gt;统计在某个时段API的请求量&lt;/h3&gt;&#xA;&lt;p&gt;示例：统计 2022/08/12 日凌晨3点的API量并根据请求量进行排序&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;grep &amp;quot;12/Aug/2022:03&amp;quot; access.log | awk &#39;{print $7}&#39; | awk -F\? &#39;{print $1}&#39; | sort | uniq -c | sort -nr&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;示例：统计 2022/08/12 日凌晨3点的接口 status 中根据 m 值参数去重统计&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
