All Apps and Add-ons

How to use multiple connections in inputs.conf file of db connect v2 app

srinivasup
Explorer

*Hi Team,
Im working on Splunk DB Connect V2 app.
Recently we created identities and connect names properly and able to see valid connect for multiple connections and able to query.
used below query :
index=main | timechart count by INSTANCE_NAME
inputs.conf
[mi_inputs:oracle:database]

connectionname=Oracle_A

--
[mi_inputs:oracle:table]
connectioname=Oracle_A
index=main
source=dbx2
sourcetype=oracle:table
query=
[mi_inputs:oracle:database]
connectionname=Oracle_B
[mi_input:oracle:table]
index=main
source=dbx2
sourcetype=oracle:table
query=
I used above configuarations, when i execute the query i am expecting count by each instance.
Expected out put is :
_time Oracle_A Oracle_B
date 34 45
BUt the query is returing only one instance count.
like
_time Oracle_A Oracle_B
date 0 45
date 0 34
Can you please let me know where Im missing*

Tags (1)
0 Karma

jplumsdaine22
Influencer

If you run your db query manually do you get results? ie

| dbxquery connection="Oracle_A" query="query"

It's possible you have an error in your query. Although I am confused - in your question you said that when you run

| index=main | timechart count by INSTANCE_NAME

You get

_time Oracle_A Oracle_B
date     0     45
date     0     34

If there is no data Oracle_A you should only see a column for Oracle B ie:

_time  Oracle_B
date   45
date   34

Can you clarify the output of your splunk query?

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...