All Apps and Add-ons

How to define metadata in Splunk db connect and how to use database input in search?

clairebesson
Explorer

Hi everyone,
I am using Splunk db connect v2. I created identities and connections. I also created a database input. The query displays the table with the different fields.
I don’t know what to enter for source, sourcetype and index. Do I have to create new one? I tried to put the name of my database input in those fields but Splunk displays an alert message.
I am not able to do a search like source=”nameofmyinput”.
Could you please help me with that?

Thanks in advance,
Claire

1 Solution

woodcock
Esteemed Legend

You can enter anything you like for sourcetype (or let splunk pick/set it for you) but source should not even be settable by you. There should be a listbox for picking index from a list of what already exists on your Indexers. Set the sourcetype to something you know is unique like ThisSourcetypeIsUnique and then try a search like this:

index=* sourcetype="ThisSourcetypeIsUnique"

View solution in original post

0 Karma

woodcock
Esteemed Legend

You can enter anything you like for sourcetype (or let splunk pick/set it for you) but source should not even be settable by you. There should be a listbox for picking index from a list of what already exists on your Indexers. Set the sourcetype to something you know is unique like ThisSourcetypeIsUnique and then try a search like this:

index=* sourcetype="ThisSourcetypeIsUnique"
0 Karma

clairebesson
Explorer

Thank you very much for your help.

0 Karma
Get Updates on the Splunk Community!

Celebrating Fast Lane: 2025 Authorized Learning Partner of the Year

At .conf25, Splunk proudly recognized Fast Lane as the 2025 Authorized Learning Partner of the Year. This ...

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...