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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...