Basic Commands for splunk(基本命令)

2023-11-11

1.搜索请求的数据

Task 1: Search for the requested data.

导航到Search视图。(如果你在主应用程序中,从屏幕左侧的列中单击Search & Reporting。你也可以通过点击屏幕顶部栏上的搜索菜单选项来访问搜索视图。)

Navigate to the Search view. (If you are in the Home app, click Search & Reporting from the column on the left side of the screen. You can also access the Search view by clicking the Search menu option on the bar at the top of the screen.)

 

Enter a search that returns all web application events that include a purchase action with a web status of 200.

Results Example:

Select the file field in the Interesting Fields list.

Results Example:

Notice that there are two different files that were returned from the web server. They are: error.do and success.do. Our web development team informs us that the success.do is served when the order is processed and error.do is served when there is an error with the information being processed.

The team is only looking for successful purchases, so change your search to only return those.

 so we can chick the success.do to achieve it...

Results Example:

You will see fields that do not matter to the team. Use the fields command to only return the action, JSESSIONID and status fields. Does your search run faster using the command?

您将看到与团队无关的字段。使用fields命令只返回操作、JSESSIONID和状态字段。您的搜索是否使用命令运行得更快?

The fields list looks cleaner, but seeing the events like this might still be confusing for the team.

字段列表看起来更干净,但是看到这样的事件对团队来说仍然很混乱。

Task 2: Put the data into an easy to read table.


Replace the fields command with the table command to display the data as a table.

Results Example:

index="main" sourcetype=access_combined_wcookie action=purchase status=200 file="success.do"
| table action,JSESSIONID,status

Change the order of the fields so that JSESSIONID is the first column.

Results Example:

Session IDs are called "UserSessions" in the marketing data. Rename JSESSIONID so that your report matches the marketing data.

Results Example:

index="main" sourcetype=access_combined_wcookie action=purchase status=200 file="success.do"
| table JSESSIONID,action,status
|rename JSESSIONID as UserSessions

Sort UserSessions using the sort command.

Results Example:

index="main" sourcetype=access_combined_wcookie action=purchase status=200 file="success.do"
| table JSESSIONID,action,status
|rename JSESSIONID as UserSessions
| sort UserSessions

Notice that some UserSessions values show up multiple times. Also notice the number of events returned on the Statistics tab.
Remove the sort command and use dedup to remove any identical session values.

Results Example:

How many events are now listed on the Statistics tab?

NOTE: As a best practice and for best performance, place dedup as early in the search as possible.

注意:作为最佳实践和最佳性能,在搜索中尽早放置dedup。

While having action and status fields displayed was nice for a sanity check of the data, the marketing team will not need to have these displayed. Remove them from your table display.

虽然显示动作和状态字段对于数据的完整性检查来说很好,但营销团队不需要显示这些字段。从表显示中删除它们。

Results Example:

 

 

 

 

 

 

 

 

 

 

 

 

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Basic Commands for splunk(基本命令) 的相关文章

  • 03-neo4j的命令

    1 查看某个联系格式 MATCH p n 开始Label r 关系名称 m 结束Label RETURN p LIMIT 25 MATCH p n Person r hive m Address RETURN p LIMIT 25 2 连续
  • sqli第一关

    一 判断注入类型 根据提示 往id里传参 由于是GET方式传输数据 所以直接在URL里传参即可 传入 id 根据结果判断是用单引号 来闭合的 二 获取字段个数 执行参数 id 1 根据结果可知字段数是大于等于2的 执行 id 1 order
  • Splunk HEC 取发送数据 服务器的hostname

    1 背景 最近Client 发送数据到 Splunk HEC 发现对方hostname 没有取到 都是HEC 的VIP 地址 这个就不能发现是那个host 发过来的数据 下面查了下文档 发现Splunk 是可以跟踪发送数据的host 的 主
  • linux 删除所有子目录下的指定文件/文件夹(转载)

    linux 删除所有子目录下的指定文件 文件夹 采用find exec组合来完成 find alipay demo type d name pycache exec rm rf 说明 alipay demo 为待查询的开始目录 从此目录开始
  • windows常用命令

    1 打开控制台命令窗口 Win R 2 文件 目录 cd 切换目录 例 cd 显示当前目录 例 cd 进入父目录 例 cd d d 进入上次d盘所在的目录 或在直接输入 d 例 cd d d 进入d盘根目录 例 cd d 显示上次d盘所在的
  • splunk之获取数据(Ingesting Data)

    Ingesting Data 下载数据地址 http splk it f1data use uname in the Username field and 5p1unkbcup for the Password field
  • anaconda prompt 常用命令

    1 查看已安装的包 conda list 2 更新所有包 conda upgrade all 3 安装包 conda install package name 4 删除包 conda remove package name 5 更新包 co
  • CMake 命令

    1 Usage cmake options
  • Linux学习之Linux常用命令整理

    Linux常用命令 练习3遍以上 一 命令基本格式 1 命令格式 root 管理员 localhost 主机名 超级用户提示符 普通用户提示符是 adminis root一级目录用pwd print working directory 打印
  • linux查看某文件夹下各个文件大小

    例如 我想查看 app 下各个文件的大小 cd app du h max depth 0 解释 cd app 进入 app 文件夹 du h max depth 0 查看文件夹下各个文件的大小 其中 0 代表查看 本文件夹 在这儿是app文
  • BitLocker的解密

    BitLocker的解密 解密 以管理员身份运行命令提示符 然后在里面输入命令 C指的是盘符 这里以解密C为例 manage bde off C 弹出所有用法 manage bde 更多使用方法 可参考官网 https docs micro
  • Basic Commands for splunk(基本命令)

    1 搜索请求的数据 Task 1 Search for the requested data 导航到Search视图 如果你在主应用程序中 从屏幕左侧的列中单击Search Reporting 你也可以通过点击屏幕顶部栏上的搜索菜单选项来访
  • splunk安装在 windows、linux and Mc OS

    Install Splunk Enterprise for windows linux and Mc OS
  • Mac git 命令自动提示

    1 首先安装配置Homebrew 注 如果已经安装过就跳过 在终端输入如下命令 usr bin ruby e curl fsSL https raw githubusercontent com Homebrew install master
  • CRYSTAL-ubuntu-打工人使用手册-log

    个人笔记 将Mp4转换成gif sudo apt get install mplayer 将mp4分解成jpg存储到 img中 mplayer ao null result 2411 mp4 vo jpeg outdir img 将 img
  • diff和patch命令——Linux命令解析(一)

    个人学习记录使用 一 说明 patch命令和diff命令 往往是要搭配使用的 patch 利用提供的补丁文件 给源文件打补丁 diff 比较两个文件 生成需要修改的补丁文件 二 diff命令 生成补丁文件 1 命令格式 diff optio
  • windows基本命令 --快速打开文件夹

    通过 cmd 命令行进入指定目录后如果想查看该目录下的文件需要输入 dir 命令 很不方便 我们可以在 cmd 下打开文件夹图形界面 explorer path 例子 1 打开当前目录 explorer 2 打开上级目录 explorer
  • FFmpeg下载及命令行使用

    下载地址 访问FFmpeg官网 选择Dlownload 选择 Windows Package 选择相应版本 点击进行下载 并进行解压 可得到如下几个文件 版本说明 Static 只包含了3个体积很大的exe Shared 除了体积很小的ex
  • Splunk 优化之加速报表 Accelerate reports

    1 背景 有些客户的数据比较大 这个时候就会用到 报表的加速功能 Accelerate reports If your report has a large number of events and is slow to complete
  • Fluentd 发送到 Splunk HEC:想要将源类型设置为命名空间

    是否可以以编程方式将源类型设置为生成日志的名称空间 我正在使用 fluidd 插件将数据发送到 Splunk http 事件收集器 在其他地方 建议使用 record kubernetes namespace name 将索引名称设置为命名

随机推荐

  • 堆排序与新元素插入(对应王道考研数据结构)

    文章目录 代码 主要针对王道的代码增加了新元素的插入 上浮 操作 测试1 对大 小 根堆插入 上浮 一个新元素 时间复杂度与树的高度h有关 根据完全二叉树的性质 O l o g 2
  • 16_C#正则表达式之06将邮箱中的名字替换成星号

    using System using System Collections Generic using System Linq using System Text using System Threading Tasks using Sys
  • gscale

    一 处理可变数量的输入和输出 利用nargin和nargout进行检测 T testhv 4 5 该函数体中使用nargin返回2 使用nargout返回1 函数nargchk可用于一个M函数体中 以检测传递函数的参量数目是否正确 msg
  • Linux脚本调试

    输出脚本运行每行的命令及状态 bash x 脚本名 或在脚本开头加上 bin bash x 仅对脚本中部分内容调试 set x set x bash 脚本名 运行脚本前先打印脚本 bash v 脚本名 或在脚本开头加上 bin bash v
  • String类

    String类 String 类的特点 字符串一旦初始化就不会被改变 1 获取 1 1 获取字符串中字符的个数 长度 int length 1 2 根据位置获取字符 char charAt int index 1 3 根据字符 串 获取在字
  • django返回html标签

    记录一下 使用from django utils html import format html return format html 例子 from django contrib import admin from models impo
  • python 多版本虚拟环境的安装以及常见报错的处理(解决python2.7 - pip wheel failed with error code 2 问题)

    安装 虚拟环境 注意虚拟环境的 包安装 不要加sudo sudo会装在全局 注意虚拟环境的 包安装 不要加sudo sudo会装在全局 注意虚拟环境的 包安装 不要加sudo sudo会装在全局 1 虚拟环境的创建和使用 项目1 gt 依赖
  • 【vscode】快捷键一键生成vue模板

    vscode 快捷键一键生成vue模板 点击File gt Preferences gt User Snippets 搜索框搜索vue 打开vue json 会有如下代码 可自行配置 可默认 Place your snippets for
  • Webkit for Android分析

    转自 http mogoweb net archives 182 网上有许多webkit的分析文章 其中针对android porting的一篇文章WebKit WebKit For Android 写的非常好 分析得非常深入 不过这篇文章
  • 二、svg文字之排版

    1 transform rotate 90 80 80 的使用
  • 【Segment Anything Model】一:SAM分割任何事物模型官网使用介绍

    点击订阅专栏 查看专栏列表和对应知识点 本文为seg SAM系列文章 在持续更新 文章目录 1 简明扼要 2 分割效果 3 开始探索 Segment Anything Model的核心愿景 Segment Anything Model已经实
  • [TPAMI‘21] Heatmap Regression via Randomized Rounding

    paper https arxiv org pdf 2009 00225 pdf code https github com baoshengyu H3R 总结 本文提出一套编解码方法 编码 random round整数化 激活点响应值表征
  • AI行业快报:人工智能最新最全资讯!

    大家好 我是写作机器人小智 这是我自己写的文章哦 所有AI行业快报1秒生成 AI行业动态 近日 阿联酋驻华大使与搜狗公司IoT事业部产品总监 就中阿人工智能发展 未来合作等话题展开了交流 期间 搜狗旅行翻译宝直接承担了同传的角色 搜狗旅行翻
  • Python3.8.1的安装和运行

    01Python 3 8 1的安装和运行 在Windows10系统下安装python 1 1访问www python org网站 在浏览器地址栏中输入www python org访问网站 1 2下载python版本 根据自己的需要或者喜好下
  • 无压力轻松使用Obsidian写newsletter

    quail平台特点 拥有四大特点 开源 人工智能增强 web3和加密货币集成 超越电子邮件 开源 每个人都应该可以访问驱动其工具的代码 通过我们的服务 您可以放心地了解背后发生的事情 人工智能增强 为了创建一个真正智能的工具 我们知道需要在
  • Android Fragment

    Android实习札记 4 Fragment 碎片 基本概念解析 转载请注明出处 coder pig Fragment相信大家都不会陌生吧 侧滑啦 抽屉效果啦 DialogFragment啊等等 一堆地方都会 用到Fragment 对于Fr
  • “GetInputName“: 不是 “Ort::Session“ 的成员

    项目场景 使用C 和ONNXruntime部署深度学习模型 问题描述 作者在尝试使用onnxruntime和C 部署深度学习模型推理的时候 按照官网的文档对于Ort Session Run的定义 如下 需要获得模型输入层与输出层的名字 st
  • 如何根据SF6气体压力温度曲线,决定不同温度下断路器的充气压力?

    如何根据SF6气体压力温度曲线 决定不同温度下断路器的充气压力 答 SF6断路器的额定压力般为0 4 0 6MPa 表压 通常这时指环境温度为20 时的压力值 温度不同时 SF6气体的压力也不同 充气或检查时必须查对SF6气体温度压力曲线
  • 基于SSM框架的《超市订单管理系统》Web项目开发(第三天)用户管理,模糊查询,精准匹配,分页显示数据

    基于SSM框架的 超市订单管理系统 Web项目开发 第三天 用户管理 模糊查询 精准匹配 分页显示数据 昨天我们完善了登录的功能模块和退出的功能模块 今天我们将实现超市订单管理系统的用户管理功能模块中的用户列表和查询用户功能 今天要完成的功
  • Basic Commands for splunk(基本命令)

    1 搜索请求的数据 Task 1 Search for the requested data 导航到Search视图 如果你在主应用程序中 从屏幕左侧的列中单击Search Reporting 你也可以通过点击屏幕顶部栏上的搜索菜单选项来访