Splunk Search

Is there any way to get _time with a dbquery for a data model?

willial
Communicator

I'm trying to get all of the Pivot features to work, but I can't seem to get a _time extracted from the datetime field in the database.

0 Karma

araitz
Splunk Employee
Splunk Employee

I don't believe that pivot/datamodel with dbquery is supported. If you help us understand the use case better, that would be great.

0 Karma

araitz
Splunk Employee
Splunk Employee

Thanks for the explanation. The workaround is to use dbinput to index the data in Splunk, then build a data model on top of the indexed data.

0 Karma

devicenul1
Path Finder

We were evaluating the DB Connect app with the data models to help build a self-service business intelligence platform. But there were too many problems with the implementation. I believe the DB Connect documentation says that if the field from your query is in a date / time format that is all you need to do. But we couldn't get that to work so we ran into similar problems your running into. Changes were another concern of ours as the db-mon tail thing wouldn't go back to import data that changed unless the rising column changes.

0 Karma

willial
Communicator

Basically, I have a database that I'm accessing with DB Connect (via |dbquery). I can set the data model up pretty well as a root search and extract all of the fields with eval expressions.

This works pretty well.

The problem is that I can't get access to the line and area graphs, because those are evidently reliant on a real event-based Splunk _time field. Everything else works alright.

0 Karma

devicenul1
Path Finder

Not sure of the specifics of your case but you can check my question that seems to be similar. Long story short, we were unable to get it to work in my scenario. The inputs.conf and props.conf in my question was updated to portray the information linu1988 was trying to express.

http://answers.splunk.com/answers/135908/db-connect-ms-sql-datetime

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 ...