转集合
1 | List<String> strList=list.stream.map(T::get).collect(Collectors.toList); |
根据分类分组
1 | List<AppModel> list=new ArrayList<>(); |
1 | List<String> strList=list.stream.map(T::get).collect(Collectors.toList); |
1 | List<AppModel> list=new ArrayList<>(); |
List<T>
List<Map<String, T>>
Map<String, List<T>>
1 | //先构造Map<String,Person>得到innerType,第一个参数为外层对象HashMap,第二个参数为String,第三个参数为Person |
Filebeat
1 | ./filebeat -e -c filebeat.yml -d "publish" |
https://www.elastic.co/guide/en/beats/filebeat/7.8/filebeat-starting.html
Logstash
1 | ./logstash -f ../config/logstash-sample.conf --config.reload.automatic |
https://www.elastic.co/guide/en/logstash/current/advanced-pipeline.html
格式
1 | 2020-07-21 09:15:38,001 INFO [quartzScheduler_Worker-3] c.g.j.modules.quartz.jobs.SampleJob [SampleJob.java : 20] 定时任务! 时间:2020-07-21 09:15:38 |
curl -XGET 'http://localhost:9200/_cluster/health?pretty=true'
curl 'localhost:9200/_cat/indices?v'
curl -XDELETE http://localhost:9200/index_namee
nohup ./kibana >/dev/null 2>&1 &
nohup ./elasticsearch >/dev/null 2>&1 &
nohup ./logstash -f ../config/logstash-sample.conf --config.reload.automatic >/dev/null 2>&1 &
Update your browser to view this website correctly.&npsb;Update my browser now