Getting Data In

Is it possible to use an index with a loadjob result to filter content?

sfatnass
Contributor

Hii everybody,

I want to know if it's possible to use an index with loadjob result.

I have some values inside a loadjob and I try to use it within a search on an index.
My loadjob results will be considered as values to filter the index content.

I tried to use "append" or "join" like this, but it doesn't work:

index=my_index_A  | fields ip_address locate_ip |append [|loadjob info_sid |fields ip_address ] | table ip_address locate_ip

Do you have any idea?
thx

0 Karma
1 Solution

sfatnass
Contributor

hi somesoni2, i tried your solution but not work and finally a solved it by

return $ip_address

index=my_index_A [| loadjob info_sid | stats count by ip_address | return $ip_address] | table ip_address locate_ip

View solution in original post

0 Karma

sfatnass
Contributor

hi somesoni2, i tried your solution but not work and finally a solved it by

return $ip_address

index=my_index_A [| loadjob info_sid | stats count by ip_address | return $ip_address] | table ip_address locate_ip

0 Karma

somesoni2
SplunkTrust
SplunkTrust

Try something like this

index=my_index_A [| loadjob info_sid | stats count by ip_address | table ip_address] | table ip_address locate_ip

This will add the ip_address field coming from the loadjob, as filter in the base search.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...