Splunk Search

How to limit the host name coming in the output as only one entry and not multiple times in props.conf?

ethanthomas
Path Finder

My sample events are like this 

event 1

My name is Ethan [host="asw.pbrfinance.sdo.dgr.com"]

My address is 46e 91 st [host="asw.pbrfinance.sdo.dgr.com"]

my city is Atlanta [host="asw.pbrfinance.sdo.dgr.com"]

event 2

My name is Thomas [host="asw..sdo.dgr.cowq234wdwaf.mhh.com"]

My address is 996e 97 st [host="asw..sdo.dgr.cowq234wdwaf.mhh.com"]

my city is Atlanta [host="asw..sdo.dgr.cowq234wdwaf.mhh.com"]

 

I want to limit the host name coming in the output as only one entry and not multiple times . Is there anyway to do this in props .conf ? Please help me with a proper regex for this . 

Expected output 

event 1

My name is Ethan [host="asw.pbrfinance.sdo.dgr.com"]

My address is 46e 91 st 

my city is Atlanta

Labels (2)
Tags (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

The props.conf file is for inputs, not outputs.  Splunk has no way of knowing at input-time if any particular value is a duplicate or not.

It's not clear how the one output event is derived from the two input events. 

What problem are you trying to solve?

---
If this reply helps you, Karma would be appreciated.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...