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
SplunkTrust
SplunkTrust

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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Persistent Queue at TcpOut — One of Splunk's Most Practical Features

Splunk introduced persistent queueing at the tcpout layer as one of the most practical resilience features in ...

Skip the Awkward Silence: Have a .conf-ersation at .conf26

Picture this. You arrive at .conf26 already having your socializing and networking plans mapped out. No ...

Rethinking Zero Trust: From Product Purchases to Logical Control Evidence

Note: This post outlines a proposed architecture and serves as an interest check. If we secure commitments ...