All Apps and Add-ons

DB connect query field need to create in splunk data

rakesh44
Communicator

Hi Friends,

I have DB connect query which runs from 1 to 7th date of every month.

I need one field to be create in splunk data if query is run out of date from 1 to 7th of every month. Suppose query is re-run manually on 8th then it should create one field in splunk data. Could we create such automation in splunk

I required such arrangement as we are trying to compare count of data injected from database with count of data in splunk. I could not use date as field as data keep changing in mili seconds.

0 Karma

lakshman239
Influencer

you could have a field say | eval query_runTime = _time in your search , which will populate the time and it can be stored in the index. everytime you run, you will have the time (including ms). would this not help?

0 Karma

rakesh44
Communicator

There two things when DB connect query runs it pull data from oracle and put it in splunk Index.
In my case if DB connect query runs it should create one field in splunk Index. Then I would count no fields in splunk.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Observability Simplified: Combining User Experience, Application Performance & ...

Tech Talk Observability Simplified: Combining User Experience, Application Performance & Network ...

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...