ritaswc/elk-query-client
最新稳定版本:1.0.0
Composer 安装命令:
composer require ritaswc/elk-query-client
包简介
Query Elk Log Content Client
README 文档
README
Query Elk Log Content
Usage:
$url = 'http://172.16.121.32:9200'; $client = new QueryClient($url, 'tiger_logs'); $list = []; $client->query(['keyword for search'], function (array $item) use (&$list) { $logContent = trim($item['fields']['event.original'][0] ?? ''); $logContent = mb_substr($logContent, mb_strpos($logContent, '{')); $arr = json_decode($logContent, true); if (is_array($arr)) { $manualType = $arr['manualType'] ?? ''; if (strlen($manualType)) { $list[$manualType] = $manualType; } } }, [strtotime('2025-01-01 00:00:00'), time()]); dd($list);
QueryClient will query all of the target data and auto complete paginator
工具将会查询所有的目标数据,并自动完成分页
统计信息
- 总下载量: 148
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-09-01