apache访问日志中浏览器信息后的最后一个数字是多少?

时间:2016-02-18 14:17:16

标签: apache logging

在apache访问日志中,我有两个GET条目,它们之间的唯一区别是浏览器信息后的最后一个数字? apache访问日志中浏览器信息后的最后一个数字是多少?

apache -access.log-20160128:Jan 28 05:57:29  apache_access: : 116.14.224.103 - - 2016-01-28T05:57:29+0100 "GET /?context=0a78181e0vvtJ1p8pKIBnoByApdDb7Z9&host=regular&locale=en_US&topicId=295 HTTP/1.1" 200 7542 "https://www.1and1.com/customized?__lf=Order-Tariff" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0" 1677
apache -access.log-20160128:Jan 28 05:57:29  apache_access: : 116.14.224.103 - - 2016-01-28T05:57:29+0100 "GET /?context=0a78181e0vvtJ1p8pKIBnoByApdDb7Z9&host=regular&locale=en_US&topicId=295 HTTP/1.1" 200 7542 "https://www.1and1.com/customized?__lf=Order-Tariff" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0" 1300

enter image description here

1 个答案:

答案 0 :(得分:0)

我找到了日志here的格式:

访问日志格式基于NCSA扩展/组合日志格式,这些是用于定义每个VirtualHost的日志记录的Apache指令:

<div class="form-group">
                    <h4>@Html.LabelFor(model => model.TagsListing, htmlAttributes: new { @class = "control-label col-md-3"})</h4>
                    <div class="col-md-6">
                        @Html.EditorFor(model => model.TagsListing, new { htmlAttributes = new { @class = "alert-info form-control",@id= "tags"} })
                        @Html.ValidationMessageFor(model => model.TagsListing, "", new { @class = "text-danger" })
                    </div>
                </div>

因此,根据上面的描述,这些数字应该是LogLevel error ErrorLog /home/example/logs/error.log LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio CustomLog /home/example/logs/access.log combinedio 或接收的字节。