web.xml配置文件的常用代码 StrutsPrepareAndExecuteFilter Struts2核心控制器,它只负责拦截由 指定的所有用户的请求 当用户请求到达时,系统会根据web.xml中配置Filter过滤用户的请求 默认情况下,如果用户的访问路径不带有后缀或者是以.action的后 ...
分类:
其他好文 时间:
2020-12-02 12:31:03
阅读次数:
5
filters:{ dotime(mess){ if(mess&&mess.length>10){ return mess.substring(5,10) } }, do2time(mess){ if(mess&&mess.length>10){ return mess.substring(11,1 ...
分类:
其他好文 时间:
2020-12-01 12:22:25
阅读次数:
11
{ "size": 0, "query": { "bool": { "filter": [ { "range": { "@timestamp": { "gte": 1596572166943, "lte": 1596593766943, "format": "epoch_millis" } } }, ...
分类:
其他好文 时间:
2020-12-01 12:04:43
阅读次数:
3
ELK集群配置安装初始化iptables关闭selinux关闭配置hosts解析[root@localhostelasticsearch]#cat/etc/hosts127.0.0.1localhostlocalhost.localdomainlocalhost4localhost4.localdomain4::1localhostlocalhost.localdomainlocalhost6lo
分类:
其他好文 时间:
2020-12-01 11:46:16
阅读次数:
2
层峦叠崎一一布隆过滤器 布隆过滤器( Bloom Filter )在起到去重作用的同时,在空间上还能节省 90% 以上,只是稍微有那么点不精确,也就是有一定的误判概率。 怎样理解布隆过滤器? 布隆过滤器理解为一个不怎么精确的 set 结构,当你使用它的 contains 法判断某个对象是否存在时,它 ...
分类:
其他好文 时间:
2020-11-27 10:51:16
阅读次数:
6
Docker版EKL安装记录文档 拉取已下三个镜像 docker.io/logstash 7.5.2 b6518c95ed2f 6 months ago 805 MB docker.io/kibana 7.5.2 a6e894c36481 6 months ago 950 MB docker.io/ ...
分类:
其他好文 时间:
2020-11-24 12:12:14
阅读次数:
8
原项目代码如下 def data_filter(src=r'D:\material\data.json',des=r'D:\material\pro_data.json',db = r'D:\material\tnbs.db'): fw = open(des, 'w', encoding='utf- ...
分类:
其他好文 时间:
2020-11-23 12:38:04
阅读次数:
5
01. 变量交换 Bad tmp = a a = b b = tmp Pythonic a,b = b,a 02. 列表推导 Bad my_list = [] for i in range(10): my_list.append(i*2) Pythonic my_list = [i*2 for i ...
分类:
编程语言 时间:
2020-11-20 11:29:30
阅读次数:
6
ELK--使用redis与logstash结合收集数据
分类:
其他好文 时间:
2020-11-18 12:15:15
阅读次数:
5
LIstener监听器 一、什么是 Listener 监听器? 1、Listener 监听器它是 JavaWeb 的三大组件之一。JavaWeb 的三大组件分别是:Servlet 程序、Filter 过滤器、Listener 监听器。 2、Listener 它是 JavaEE 的规范,就是接口 3、 ...
分类:
其他好文 时间:
2020-11-17 12:39:53
阅读次数:
6