首页 > TAG信息列表 > AccessLog

ELK—Nginx日志收集

自定义nginx日志格式为json log_format access_json '{"@timestamp":"$time_iso8601",' '"host":"$server_addr",' '"clientip":"$remote_addr",' '"size":$body_bytes_s

confluence启用用户访问日志

方法一:   参考https://confluence.atlassian.com/confkb/how-to-enable-user-access-logging-182943.html 在confluence/WEB-INF/web.xml删除注释,并修改   <filter-mapping>     <filter-name>AccessLogFilter</filter-name>     <url-pattern>/display/*</ur

tomcat源码-engine及standardEngine实现

我们看下engine,引擎的执行 server.xml 如下engine下包含了host节点 <Engine name="Catalina" defaultHost="localhost"> <!--For clustering, please take a look at documentation at: /docs/cluster-howto.html (simple how to)

MySQL5.7新特性之explain UPDATE/DELETE/INSERT

在MySQL5.5版本中,explain查看执行计划,只能支持select语句,但是在MySQL5.6/5.7版本中,可以支持DML语句,即UPDATE、DELETE、INSERT。 建立测试表accessLog和accessLog_bak进行测试:点击(此处)折叠或打开mysql> explain select * from accessLog where id=16649850;+----+--------

MySQL5.7新特性之select半连接优化

MySQL的子查询一直以来都是性能差的著称,解决方法是以join代替。 MySQL5.5版本中该查询先把accessLog表中版本为2.2的数据线过滤出来,然后每个符合条件的数据都与内表进行一次select id from accessLog_01,因此性能低下。MySQL5.5采取的解决方法是将in重写为exists。 在MySQL5.6/5.7

Springboot项目中配置tomcta监控日志

背景:在tomcat的access中打印出请求的情况可以帮助我们分析问题,通常比较关注的有访问IP、线程号、访问url、返回状态码、访问时间、持续时间。 在Spring boot中使用了内嵌的tomcat,可以通过server.tomcat.accesslog配置tomcat 的access日志 tomcat的accesslog日志  server.tomc

springboot中的access-log

在现在一个项目中,我们对于接口请求日志有自己的格式输出要求,所以就没有使用tomcat自带的access-log。两者本质是相同的,都是为了接口统计。所以如果工作中没有明确需求,可以直接使用tomcat自带的配置实现。 springboot中,关于access log的配置 # tomcat server.tomcat.accept-count

springboot配置tomcat大全

server.tomcat.accept-count=100 # Maximum queue length for incoming connection requests when all possible request processing threads are in use.server.tomcat.accesslog.buffered=true # Whether to buffer output such that it is flushed only periodically.serve

日志文件分析溯源(SQL注入IP地址2)

记事本打开accesslog,查找pass关键字,或者information,column,union等。 发现sql注入 输入ip,得到key