Splunk Search

Help with props.conf with lookup?

daniel333
Builder

All,

I have a lookup, which I in turn want to do a couple aliases on. But doesn't seem to work. I get clienthost back, but the aliases don't. Any idea what I might be doing wrong here?

  ## Some DNS
  FIELDALIAS-real_ip_as_clientip = real_ip as clientip
  LOOKUP-dns = dnslookup clientip OUTPUT clienthost
  FIELDALIAS-clienthost_as_src_host = clienthost AS src_host
  FIELDALIAS-clienthost_as_src_dns = clienthost AS src_dns
0 Karma
1 Solution

somesoni2
SplunkTrust
SplunkTrust

Have a look at this really nice Splunk documentation which provides sequence of all search time operation.
https://docs.splunk.com/Documentation/Splunk/8.0.2/Knowledge/Searchtimeoperationssequence

The Field Aliasing happes before Lookup, that's the reason you don't see your clienthost aliases.

View solution in original post

0 Karma

somesoni2
SplunkTrust
SplunkTrust

Have a look at this really nice Splunk documentation which provides sequence of all search time operation.
https://docs.splunk.com/Documentation/Splunk/8.0.2/Knowledge/Searchtimeoperationssequence

The Field Aliasing happes before Lookup, that's the reason you don't see your clienthost aliases.

0 Karma

daniel333
Builder

Dang, that's no good. Any work around for this?

0 Karma

somesoni2
SplunkTrust
SplunkTrust

This might work:

LOOKUP-dns = dnslookup clientip OUTPUT clienthost clienthost as src_host clienthost as src_dns

basically lookup is outputting 3 fields (same field with different names)

0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...