Splunk笔记
学习Splunk Fundamentals Part 2 (IOD) 和 Splunk Fundamentals Part 1课程的笔记。
Chart
Over
By
Tips:
- ….|chart count over host by product_name usenull=f useother=f
- Only first value after by modifier effect
Timechart
- Time is alwarys the X axis
- Only first value after by modifier effect
- Span=12hr
- Use the limit option to include only the 5 best-selling products.
- Splunk automatically calculates the top products by totaling each column and taking the top n results (n being the number you specify in your limit).
- …|timechart count by product_name limit=0
Iplocation
- …|iplocation src_ip
Maps
- Marker maps
- Choropleth maps
Geostats
- …|geostats latfield=xx longfield=xx count
- Latfield
Geom
- (geom geo_us_states featureIdField=VendorStateProvince)
- index=sales sourcetype=vendor_sales VendorID < 3000 |chart count by VendorStateProvince |geom
- geo_us_states featureIdField=VendorStateProvince
Trendline
- Wma2 weighted moving average
- Sma simple moving average
- Ema exponenial moving average 指数
Addtotals
- Col=true
- Label="xx"
- Labelfield="xx"
- Fieldname=xx
- Row=false
Eval
- Tostring format values will changing their characteristics
- destination field for the eval command
- already exists overwritten by the new field
- defined in the eval command
Fieldformat
- Not change chararistic
Search
- index=security sourcetype=linux_secure fail* |stats count by user|search count>3 |sort -count
- 不可以接函数,where场景更多
Where
- index=network sourcetype=cisco_wsa_squid |stats count by http_content_type |eval type=if(http_content_type LIKE "image%","graphic","other")
- No results are found because the search command cannot compare values from two different fields. (As you saw earlier, the where command can do this.)
- … | where a>2 AND b>4
Lookup
Transaction
- Endwith
- Startwith
- : The search command must be downstream from the transaction command.
- Duration
- Eventcount
- Maxspan
Name conventions
Group
Type
Platform
Category
Time
Description
Tips:
- OPS_WFA_Network_Security_na_IPwhoisAction
- It is suggested that you name your Knowledge Objects using 6_ segmented keys.
Field Extractor (FX)
Extract your own field
Access FX via Settings, Fields Sidebar, or Event Action menu
Extraction Methods
- Regex
- Delimiter
Field Aliaes
- A way to normalize data
- Support multiple aliases
- Applied after field extractions,before lookup
- Can apply to lookup
Calculated
- A caculated field must be based on an extracted or discovered field, Not from lookup table or search
Tags
Nicknames for related field/values
One or more tags for any field/values
Case Sensitiv
Search syntax
- Tag=tagenam
- Tag::filed=tagname
- Tag=p* (partial field value)
Even Types
- Categorizing events based on search
- Tagged to group similar types of event
- No time range
- Can be inclued in a search sting
Macro
- Store entire search strings
- Time range independent
- Pass arguments to the search
- Expanding search ctr+shift+e
Workflow
- Get workflow
- Post workflow
- Search workflow
Knowledge Object
Data Models
Data model is structured datasets
3 types dataset
- Events
- Searchs
- Transacitons
Acceleration
Events Dataset
- Constraints
- Fields
Dataset field
Auto-extractd
Field type
- String
- Number
- Boolean
- IPV4
Field flags
- Optional
- Required
- Hidden
- Hidden & required
Eval expression
Lookup
Regular expression
Geo ip
Pivot
- Used for creating reports and dashboards, which are based on dataset
CIM Add-on ( Common Information Model)
- Normalize data
- Easier correlation data
- Object permission
Datamodel command
- |datamodel Web Web search |fields web*
Splunk笔记的更多相关文章
- Splunk 简单笔记
Splunk Notes source="c:\logs\abc.log" | rex field=url "(?<=\/)(?<ApiId>\w+?) ...
- 一起学习 微服务(MicroServices)-笔记
笔记 微服务特性: 1. 小 专注与做一件事(适合团队就是最好的) 2. 松耦合 独立部署 3. 进程独立 4. 轻量级通信机制 实践: 1. 微服务周边的一系列基础建设 Load Balancing ...
- Splunk大数据分析经验分享
转自:http://www.freebuf.com/articles/database/123006.html Splunk大数据分析经验分享:从入门到夺门而逃 Porsche 2016-12-19 ...
- git-简单流程(学习笔记)
这是阅读廖雪峰的官方网站的笔记,用于自己以后回看 1.进入项目文件夹 初始化一个Git仓库,使用git init命令. 添加文件到Git仓库,分两步: 第一步,使用命令git add <file ...
- js学习笔记:webpack基础入门(一)
之前听说过webpack,今天想正式的接触一下,先跟着webpack的官方用户指南走: 在这里有: 如何安装webpack 如何使用webpack 如何使用loader 如何使用webpack的开发者 ...
- SQL Server技术内幕笔记合集
SQL Server技术内幕笔记合集 发这一篇文章主要是方便大家找到我的笔记入口,方便大家o(∩_∩)o Microsoft SQL Server 6.5 技术内幕 笔记http://www.cnbl ...
- PHP-自定义模板-学习笔记
1. 开始 这几天,看了李炎恢老师的<PHP第二季度视频>中的“章节7:创建TPL自定义模板”,做一个学习笔记,通过绘制架构图.UML类图和思维导图,来对加深理解. 2. 整体架构图 ...
- PHP-会员登录与注册例子解析-学习笔记
1.开始 最近开始学习李炎恢老师的<PHP第二季度视频>中的“章节5:使用OOP注册会员”,做一个学习笔记,通过绘制基本页面流程和UML类图,来对加深理解. 2.基本页面流程 3.通过UM ...
- NET Core-学习笔记(三)
这里将要和大家分享的是学习总结第三篇:首先感慨一下这周跟随netcore官网学习是遇到的一些问题: a.官网的英文版教程使用的部分nuget包和我当时安装的最新包版本不一致,所以没法按照教材上给出的列 ...
随机推荐
- python下的自动化测试--selenium 验证码输入问题
之前一直在研究scrapy下数据抓取,在研究ajax数据抓取时碰巧研究了一下selenium,确实很实用,不过只做scrapy下的数据抓取,不怎么合适,一是性能的损耗,一直需要开一个浏览器,二是对于爬 ...
- mvc4 Forms验证存储 两种登录代码
自己也不知道网上看到的第一种居多,第二种用到的人很少,第二种代码十分简洁,就是不清楚是否有安全隐患. 要采用Forms身份验证,先要在应用程序根目录中的Web.config中做相应的设置: <a ...
- 第三十三篇 Python中关于OOP(面向对象)的常用术语
面向对象的优点 从编程进化论可知,面向对象是一种更高等级的结构化编程方式,它的好处主要有两点: 1. 通过封装明确了内外,你做为类的缔造者,你就是女娲,女娲造物的逻辑别人无需知道,女娲想让你知道,你才 ...
- 【java并发编程】十三章:显式锁:LOCK
java5以后,新增了显式锁,用于当内置锁不能满足需求后可选择的一种高级方案. lock接口的特点 与内置锁一样,他能提供互斥性,内存可见性,可重入等特征,与内置锁不同的是,Lock提供了一种无条件, ...
- python学习总结------邮件与短信
邮件发送 - 简介: - 邮件服务器.用户名.密码 - 相关协议: - SMTP:简单邮件传输协议 - POP3:邮局通讯协议 - IMAP:交互式邮件存取协议 - SMTP协议默认端口是25 - 用 ...
- vue路由文档笔记
引入router this.$router 和 router 使用起来完全一样.我们使用 this.$router 的原因是我们并不想在每个独立需要封装路由的组件中都导入路由 可以在任何组件内通过 t ...
- 线段树——hdu1754I Hate It
一.题目回顾 题目链接:I Hate It Problem Description 很多学校流行一种比较的习惯.老师们很喜欢询问,从某某到某某当中,分数最高的是多少.这让很多学生很反感.不管你喜不喜欢 ...
- [译]Python - socket.error: Cannot assign requested address
原文来源: https://stackoverflow.com/questions/48306528/python-socket-error-cannot-assign-requested-addre ...
- Python不同进制之间的转换
不同的进制 二进制 0b101 以数字0和字母b打头的表示二进制数 如果出现大于等于2的数 会抛出SyntaxError异常 八进制 0711 以数字0打头的数字表示八进制数 如果出现大于 ...
- lintcode-45-最大子数组差
45-最大子数组差 给定一个整数数组,找出两个不重叠的子数组A和B,使两个子数组和的差的绝对值|SUM(A) - SUM(B)|最大. 返回这个最大的差值. 注意事项 子数组最少包含一个数 样例 给出 ...