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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...