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!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...