流量分析利器arkime的学习之路(二)---API接口

前文回忆

《流量分析利器arkime的学习之路(一)---安装部署》

概述

注意点

Arkime对所有API调用都使用摘要身份验证,因此请确保在库或curl命令中启用摘要身份验证。学习如何进行API调用的最简单方法是打开浏览器的javascript控制台,观察Arkime UI正在进行的调用,它使用所有相同的API。

注意:许多API端点都需要一个数据库字段名称,这与您在搜索表达式中使用的名称不同。查看数据库字段名称的最简单方法是单击Arkime中的猫头鹰标志->单击左侧的字段标签->单击显示数据库字段。

参数地址中带有冒号的参数名称,就是可以修改替换的参数。

关键词及核心功能

SPI(Session Profile Information)会话配置文件信息。

SPI View用于深入分析分析人员希望进一步调查的会话的特定指标。允许分析师快速查看用户感兴趣的每个项目的数量。例如,如果分析师想要查看当前时间窗口内记录的所有基本授权标题,分析师可以打开http抽屉并单击以启用http.authorization字段。然后,分析师可以更新他们的搜索查询,以包括已观察到的特定授权字符串,或者使用通配符来查看特定类型的授权标题(基本*、不记名*等)的全部内容。此外,SPI视图允许分析师快速查看时间窗口内观察到的IP地址、http响应代码、IRC缺口/通道等更多信息。

SPI Graph允许用户通过一段时间内的条形图可视化SPI视图页面中的任何项目。该页面对于每种SPI类型的活动概览以及深入分析非常有用

Connections允许用户基于他们选择的源节点和目的节点查看树形图。使用这种方法可以直观地确定关系。

Hunt 允许用户在会话包搜索文本

Files 罗列出已经存储的pcap文件

详细信息可以点击Arkime的猫头鹰标志获取所有部分详细介绍。

在文档中标注的复杂数据类型,在文档最后都有介绍。

重点可能要关注

的数据为

查看类

  1. 连接关系 显示主机访问关系
  2. 会话 显示主机之间的协议

主动类

  1. Hunt 主动获取相关报文

所有API

连接关系

查询

构建弹性搜索连接查询。获取节点和链接的列表并将其返回给客户端。

地址

POST/GET - /api/connections

参数

参数

类型

默认值

描述

See_List

SessionsQuery

This API supports a common set of parameters documented in the SessionsQuery section

srcField

string

"ip.src"

The source database field name

dstField

string

"ip.dst:port"

The destination database field name

baselineDate

number

0

The baseline date range to compare connections against. Default is 0, disabled. Options include: 1x - 1 times query range. 2x - 2 times query range. 4x - 4 times query range. 6x - 6 times query range. 8x - 8 times query range. 10x - 10 times query range. 1 - 1 hour. 6 - 6 hours. 24 - 1 day. 48 - 2 days. 72 - 3 days. 168 - 1 week. 336 - 2 weeks. 720 - 1 month. 1440 - 2 months. 4380 - 6 months. 8760 - 1 year.

baselineVis

string

"all"

Which connections to display when a baseline date range is applied. Default is all. Options include: ‘all’ - All Nodes: all nodes are visible. ‘actual’ - Actual Nodes: nodes present in the “current” timeframe query results are visible. ‘actualold’ - Baseline Nodes: nodes present in the “baseline” timeframe query results are visible. ‘new’ - New Nodes Only: nodes present in the “current” but NOT the “baseline” timeframe are visible. ‘old’ - Baseline Nodes Only: nodes present in the “baseline” but NOT the “current” timeframe are visible.

返回:

名称

类型

描述

links

array

The list of links

nodes

array

The list of nodes

查询(CSV格式 

构建弹性搜索连接查询。获取csv格式的节点和链接列表,并将它们返回给客户端。(ES)

地址

POST/GET - /api/connections/csv 或者 /api/connections.csv

参数:

参数

类型

默认值

描述

See_List

SessionsQuery

This API supports a common set of parameters documented in the SessionsQuery section

srcField

string

"ip.src"

The source database field name

dstField

string

"ip.dst:port"

The destination database field name

返回值

名称

类型

描述

csv

csv

The csv with the connections requested

定时任务

检索

检索用户可以查看的定期查询。

地址

GET - /api/crons

返回值

名称

类型

描述

queries

Array.<ArkimeQuery>

A list of query objects.

新建

创建新的定期查询。

地址

POST - /api/cron

返回值

名称

类型

描述

success

boolean

Whether the create operation was successful.

text

string

The success/error message to (optionally) display to the user.

query

ArkimeQuery

The new query

更新

更新定期查询。

地址

POST - /api/cron/:key

返回值

名称

类型

描述

success

boolean

Whether the update operation was successful.

text

string

The success/error message to (optionally) display to the user.

query

ArkimeQuery

The updated query object

删除

删除定期查询。

地址

DELETE - /api/cron/:key

返回值

名称

类型

描述

success

boolean

Whether the delete operation was successful.

text

string

The success/error message to (optionally) display to the user.

历史记录

检索

检索历史记录或用户客户端对API的请求的列表。

地址

GET - /api/histories

参数:

参数

类型

默认值

描述

date

number

1

The number of hours of data to return (-1 means all data). Defaults to 1.

startTime

number

If the date parameter is not set, this is the start time of data to return. Format is seconds since Unix EPOC.

stopTime

number

If the date parameter is not set, this is the stop time of data to return. Format is seconds since Unix EPOC.

searchTerm

string

The search text to filter the history list by.

length

number

100

The number of items to return. Defaults to 1,000.

start

number

0

The entry to start at. Defaults to 0.

sortField

string

"timestamp"

The field to sort the results by.

desc

string

true

Whether to sort the results descending or ascending. Default is descending.

userId

string

The ID of a user to request history results for. Admin can retrieve all users. Normal users can only retrieve their own.

返回值

名称

类型

描述

data

Array.<History>

The list of history results.

recordsTotal

number

The total number of history results stored.

recordsFiltered

number

The number of history items returned in this result.

删除

删除历史记录条目(仅限管理员)。

地址

DELETE - /api/history/:id

参数:

参数

类型

描述

index

string

The OpenSearch/Elasticsearch index that the history item was stored in.

返回值

名称

类型

描述

success

boolean

Whether the delete history operation was successful.

text

string

The success/error message to (optionally) display to the user.

捕获

新建

创建新的狩猎。

地址

POST - /api/hunt

参数:

参数

类型

描述

See_List

SessionsQuery

This API supports a common set of parameters documented in the SessionsQuery section

totalSessions

number

The number of sessions to search.

name

string

The name of the hunt (not unique).

size

number

The number of packets to search within each session.

src

boolean

Whether to search the source packets. Must search src or dst or both.

dst

boolean

Whether to search the destination packets. Must search src or dst or both.

type

string

Whether to search raw or reassembled packets.

search

string

The search text to search for within packets.

searchType

string

What type of search the text is. Options include: ascii - search for case insensitive ascii text. asciicase - search for case sensitive ascii text. hex - search for hex text. regex - search for text using safe regex. hexregex - search for text using safe hex regex.

notifier

string

The optional notifier name to fire when there is an error, or there are matches (every 10 minutes), or when the hunt is complete.

users

string

The comma separated list of users to be added to the hunt so they can view the results.

返回值

名称

类型

描述

success

boolean

Whether the creation of the hunt was successful.

hunt

Hunt

The newly created hunt object.

invalidUsers

array

The list of users that could not be added to the hunt because they were invalid or nonexitent.

检索

检索狩猎列表。

地址

GET - /api/hunts

参数:

参数

类型

默认值

描述

searchTerm

string

The search text to search hunt results for.

length

number

10000

The number of items to return. Defaults to 10000.

start

number

0

The entry to start at. Defaults to 0

sortField

string

"created"

The field to sort the hunt results by. Defaults to “created”.

desc

string

false

Whether to sort the results in descending order. Default is ascending.

history

string

false

Whether to return only finished hunts. Default is to return queued, paused, and running hunts.

返回值

名称

类型

描述

runningJob

Hunt

If there is a hunt running, returns the currently running hunt object.

data

Array.<Hunt>

The list of hunts (either finished or queued/paused/running).

recordsTotal

number

The total number of hunts Arkime has.

recordsFiltered

number

The number of hunts returned in this result.

删除

删除一个狩猎

地址

DELETE - /api/hunt/:id

返回值

名称

类型

描述

success

boolean

Whether the delete hunt operation was successful.

text

string

The success/error message to (optionally) display to the user.

取消

取消狩猎。完成狩猎并将其放入狩猎历史。

地址

PUT - /api/hunt/:id/cancel

返回值

名称

类型

描述

success

boolean

Whether the cancel hunt operation was successful.

text

string

The success/error message to (optionally) display to the user.

暂停

暂停狩猎。

地址

PUT - /api/hunt/:id/pause

返回值

名称

类型

描述

success

boolean

Whether the pause hunt operation was successful.

text

string

The success/error message to (optionally) display to the user.

开启

进行狩猎。

地址

PUT - /api/hunt/:id/play

返回值

名称

类型

描述

success

boolean

Whether the play hunt operation was successful.

text

string

The success/error message to (optionally) display to the user.

删除匹配

从匹配的会话中删除搜索ID和名称。

地址

PUT - /api/hunt/:id/removefromsessions

返回值

名称

类型

描述

success

boolean

Whether the operation was successful.

text

string

The success/error message to (optionally) display to the user.

更新

更新搜索-只能更新描述和角色

地址

PUT - /api/hunt/:id

参数:

参数

类型

描述

hunt

Hunt

The new hunt data

返回值

名称

类型

描述

success

boolean

Whether the operation was successful.

text

string

The success/error message to (optionally) display to the user.

检索用户

将用户添加到搜寻。

地址

POST - /api/hunt/:id/users

参数:

参数

类型

描述

users

string

Comma separated list of user ids to add to the hunt.

返回值

名称

类型

描述

success

boolean

Whether the add users operation was successful.

users

array

The list of users that were added to the hunt.

invalidUsers

array

The list of users that could not be added to the hunt because they were invalid or nonexitent.

删除用户

从搜索中删除用户。

地址

DELETE - /api/hunt/:id/user/:user

返回值

名称

类型

描述

success

boolean

Whether the remove users operation was successful.

users

array

The list of users who have access to the hunt.

invalidUsers

array

The list of users that could not be removed from the hunt because they were invalid or nonexitent.

字段

获取与会话相关的可用数据库字段对象。

地址

GET - /api/fields

参数:

参数

类型

默认值

描述

array

boolean

false

Whether to return an array of fields, otherwise returns a map

返回值

名称

类型

描述

array/map

The map or list of database fields

PCAP文件

列表

地址

GET - /api/files

获取Arkime知道的PCAP文件列表。

参数:

参数

类型

默认值

描述

length

number

100

The number of items to return. Defaults to 500, Max is 10,000

start

number

0

The entry to start at. Defaults to 0

返回值

名称

类型

描述

data

Array

The list of files

recordsTotal

number

The total number of files Arkime knows about

recordsFiltered

number

The number of files returned in this result

大小

检索PCAP文件的文件大小。

地址

GET - /api/:nodeName/:fileNum/filesize

返回值

名称

类型

描述

filesize

number

The size of the file (

元数据操作

检索

检索可以对元数据值执行的操作。

地址

GET - /api/valueactions

返回值

名称

类型

描述

object

The list of actions that can be preformed on data values.

字段操作

检索

地址

GET - /api/fieldactions

检索可以在字段上执行的操作。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mfbz.cn/a/572590.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

3gp转MP4怎么转?简单的3个方法~

3gp最初是由第三代合作伙伴计划&#xff08;3rd Generation Partnership Project&#xff09;设计的&#xff0c;旨在满足移动设备对高效传输音频和视频的需求。它的起源可以追溯到20世纪初&#xff0c;当时移动通信技术的飞速发展使得人们对更加高效的多媒体文件格式有了迫切需…

几种免费SSL证书申请方式

目录 DV单域名免费证书的获取渠道&#xff1a; DV多域名免费证书获取渠道&#xff1a; DV通配符免费证书获取渠道&#xff1a; 随着现在网络安全意识的逐渐提升&#xff0c;越来越多的网站都在相继配对部署SSL证书&#xff0c;用以实现https访问。 大家都知道SSL证书好&…

【linux】基础IO(软硬链接)

上一节我们已经搞懂了已经被打开的文件&#xff0c;还有没有被打开的文件都是怎样被管理起来的&#xff0c;同样&#xff0c;路径的重要性也不言而喻&#xff0c;是确定文件在那个分区&#xff0c;进而可以解析到目标文件与目录内容的关系&#xff0c;从而找到inode&#xff0c…

微带线设计细节的模拟仿真分析

微带线设计在很多PCB设计场景中被应用&#xff0c;但是&#xff0c;有些工程师往往并不注重设计细节&#xff0c;导致最后的设计指标与预期相差甚远&#xff0c;比如设计中&#xff0c;会将丝印、散热金属等放在走线的上方&#xff0c;设计检查时会有人产生质疑&#xff0c;至于…

3DTiles生产流程与规范

一篇19年整理的比较老的笔记了。更多精彩内容尽在数字孪生平台。 瓦片切分 标准的四叉树切分对于均匀分布的地理数据切片非常有效&#xff0c;但是这样均等的切分不适用于随机分布、不均匀分布的地理数据&#xff0c;当地理数据稀疏分布的时候&#xff0c;均等的四叉树就不再高…

java-spring-mybatis -学习第一天-基础知识讲解

目录 前置条件(创建一个项目) Mybatis 定义 可能出现的问题 这边如果连接不上数据库 ​编辑 Dao接口设计 Mybatis流程 创建实体类 User 和其属性 创建Mapper的接口类 测试类测试 实例数据库数据的更新 实例数据库数值的删除 最重要的是有一个原始的数据库 -我这边…

使用 vllm 本地部署 cohere 的 command-r

使用 vllm 本地部署 cohere 的 command-r 0. 引言1. 安装 vllm2. 本地部署 cohere 的 command-r3. 使用 cohere 的 command-r 0. 引言 此文章主要介绍使用 使用 vllm 本地部署 cohere 的 command-r。 1. 安装 vllm 创建虚拟环境&#xff0c; conda create -n myvllm python…

Oracle Linux 8.8 一键安装 Oracle 11GR2 RAC(231017)

前言 Oracle 一键安装脚本&#xff0c;演示 Oracle Linux 8.8 一键安装 Oracle 11GR2 RAC&#xff08;231017&#xff09;过程&#xff08;全程无需人工干预&#xff09;&#xff1a;&#xff08;脚本包括 ORALCE PSU/OJVM 等补丁自动安装&#xff09; ⭐️ 脚本下载地址&…

kafka大数据采集技术实验(未完待续)

Kafka环境搭建 下载地址&#xff1a;https://link.zhihu.com/?targethttps%3A//kafka.apache.org/downloads解压启动zookeeper bin/zookeeper-server-start.sh config/zookeeper.properties需要注意的是 : " c o n f i g / z o o k e e p e r . p r o p e r t i e s &q…

维态思(上海)环保科技有限公司 | 2024全国水科技大会暨技术装备成果展览会

嘉宾简介 胡建龙 维态思&#xff08;上海&#xff09;环保科技有限公司 总经理 报告题目&#xff1a;微生态滤床 植物工厂——小城镇生活污水生态净化及零排放案例分享 国家注册设备工程师&#xff08;给排水&#xff09;、上海市&#xff08;合作交流&#xff09;五四青年…

BUUCTF---misc---[ACTF新生赛2020]outguess

1、下载附件&#xff0c;解压之后得到下面信息 2、查看图片属性&#xff0c;发现有个核心价值观编码&#xff1b;解码为abc 3、flag.txt提示 4、结合题目&#xff0c;这是一个outguess隐写 5、用kali先下载安装隐写库 6、使用命令-k(密钥)&#xff1b;-r(将图片里面的隐写信息…

InstantMesh:利用稀疏视图大规模重建模型从单张图像高效生成3D网格

作者&#xff1a;Jiale Xu&#xff0c;Weihao Cheng&#xff0c;Yiming Gao等 编译&#xff1a;东岸因为一点人工一点智能 InstantMesh&#xff1a;利用稀疏视图大规模重建模型从单张图像高效生成3D网格在这项工作中&#xff0c;我们提出了InstantMesh&#xff0c;一个开源的…

免费在英伟达官网使用多个开源AI大模型

英伟达官网能体验到多个聊天AI和图片生成AI&#xff0c;不废话直接上链接 AI开源大模型&#xff08;https://build.nvidia.com/explore/discover?api-keytrue&#xff09; 开源的AI大模型有meta的llama3-8b和llama3-70b、snowflake的arctic、microsoft的phi-3-mini、mistral…

【Linux系统编程】第九弹---权限管理操作(下)

✨个人主页&#xff1a; 熬夜学编程的小林 &#x1f497;系列专栏&#xff1a; 【C语言详解】 【数据结构详解】【C详解】【Linux系统编程】 目录 1、目录权限 2、粘滞位 总结 1、目录权限 首先提出一个问题&#xff0c;删除一个文件需要什么权限呢&#xff1f;&#xff1f…

虚拟机软件哪个好用 虚拟机软件哪个可以玩暗区突围 虚拟机软件排名 PD19虚拟机 Mac类虚拟机运行Windows程序 CrossOver支持的热门游戏

随着跨系统互联的需求不断增长&#xff0c;越来越多的用户会选择在电脑系统中安装虚拟机软件&#xff0c;进而更加便捷地访问和操作其他系统。一款好用的虚拟机软件能够提高系统互联的效率&#xff0c;进而实现了资源共享、测试环境搭建等多种用途。而在众多的虚拟机软件当中&a…

张驰咨询:降本增效企业突破市场重围的制胜法宝

企业在快速发展的过程中&#xff0c;降本增效是永恒不变的主题。毕竟&#xff0c;在竞争激烈的市场环境中&#xff0c;只有不断提高效率和降低成本&#xff0c;才能在竞争中立于不败之地。那么&#xff0c;为什么企业需要降本增效呢&#xff1f; 首先&#xff0c;降本增效是企业…

vue+springboot的登录图片验证码(前端对接报错)

tip:这个只是一个效果实际要运用&#xff0c;还是需要改改滴&#xff01; 后台Java自带的 本来我是打算用第三方库的&#xff0c;没有整出来&#xff0c;就跟沈某人说不会来着&#xff0c;他说最好用Java自带的&#xff0c; 不然换个系统第三方的就不能用了&#xff0c;大概…

不可以论文查重,也包含了查AI率吗?

临近毕业&#xff0c;完成一篇符合学术规范的毕业论文是一项繁琐又具挑战性的任务。撰写完论文后&#xff0c;反复的查重降重已让人心身疲累。今年&#xff0c;学校又提出了新要求&#xff0c;论文还需要通过AIGC检测系统&#xff08;www.checkaigc.com&#xff09;才行&#x…

Vue2学习笔记(尚硅谷天禹老师)

目录 一、入门案例 二、模板语法 三、数据绑定 四、el和data的两种写法 五、MVVM模型 六、Object.defineproperty方法 七、Vue中响应式原理 八、数据代理 九、methods配置项 十、Vue中的事件处理 十一、Vue中的键盘事件 十二、计算属性 十三、监视属性watch 十四、绑定Class样式…

【echarts】数据起点不从X轴的原点开始【不从0开始】

echarts折线图x轴不从0开始怎么办&#xff1f; 或者说为什么有些图是这样的 有些却是这样的 原因出在这里&#xff1a; boundaryGap: false 默认是true&#xff0c;是指坐标轴两边留白。改为false&#xff1a;不留白即从原点开始。 看一下官方的说明