hai all i am using below search to get enrich a field StatusDescription using subsearch when i was running sub search alone its gives me results for hostname and StatusDescription
but using below...
See more...
hai all i am using below search to get enrich a field StatusDescription using subsearch when i was running sub search alone its gives me results for hostname and StatusDescription
but using below by join StatusDescription field is getting empty values please correct me
index=_internal sourcetype=splunkd source="/opt/splunk/var/log/splunk/metrics.log" group=tcpin_connections os=Linux
| dedup hostname
| rex field=hostname "(?<hostname>[^.]+)\."
| eval age=(now()-_time)
| eval LastActiveTime=strftime(_time,"%y/%m/%d %H:%M:%S")
| eval Status=if(age<3600,"Running","DOWN")
| rename age AS Age
| eval Age=tostring(Age,"duration")
| table _time, hostname, sourceIp, Status, LastActiveTime, Age
| join type=left hostname
[ search index=index1 sourcetype="new_source1"
| rename NodeName AS hostname
| table hostname, StatusDescription ]