Splunk Search

How to make a field extraction for my sample data?

soniajin
New Member

UseCase to extract name that has "at: A_T "and group name by id?

TestData
"add[1]: HomeKit
abc: "22c4902d-"
id: X://A/AC=74AC3219-15AE--8CC6-BAFAFC6
homeId: X-HM://A/HM=A94A1A939A70-81D6DCE7B6C6
name: "Test1"
rs: "Test1"
at: A_T

add[2]: HomeKit
abc: "ae588e20-befc-4875-95b2-0945547f09dc"
id: X-HM://A/AC=BD8EC554-6828-5E2F-947F-DB98AD7669F9
homeId: ACCESSORY
name: "Test1"
rs: "Test1"
at: A_T

add[3]: HomeKit
abc: "ae588e20-befc-4875-95b2-0945547f09dc"
id: X-HM://A/AC=BD8EC554-6828-5E2F-947F-DB98AD7669F9
homeId: ACCESSORY
name: "Test2"
rs: "Test1"
at: A_T

add[4]: HomeKit
abc: "ae588e20-befc-4875-95b2-0945547f09dc"
id: X-HM://A/AC=BD8EC554-6828-5E2F-947F-DB98AD7669F9
homeId: ACCESSORY
name: "Test1"
rs: "Test1"
at: STR"

Tags (1)
0 Karma

efavreau
Motivator

What have you tried? Where are you getting stuck? Are you looking to do this at index time or search time?

###

If this reply helps you, an upvote would be appreciated.
0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...