Getting Data In

When using Splunk to retrieve data from an Oracle database, how do I reduce the returned results to only the last 30 days?

karthi2809
Contributor

Splunk database input query from oracle database ?

I am using Oracle database to retrieve data to Splunk and the database is getting slow because of searching from given data. So i need to reduce only last 30 days data.

Query :

SELECT test.request_ts FROM test WHERE  test.Request_Ts > '2018-10-05 00:00:00.000'
{{AND test.$rising_column$ > ? }}

Thanks in advance

0 Karma

iamarkaprabha
Contributor

Hi karthi2809,

You can use DB Connect app and index the whole db data into splunk.
After you index the data, it will resolve the performance issue

karthi2809
Contributor

I am using db connect app only.but database getting slow

0 Karma

iamarkaprabha
Contributor

Did you index the data ?
or are you using just dbx query

0 Karma

karthi2809
Contributor

indexed the data.

0 Karma

karthi2809
Contributor

I need to fetch last 30 days data to splunk.

0 Karma

iamarkaprabha
Contributor

Hi ,

You can do one thing. Put the timestamp of the particular column in your DB table into Splunk. Any try that one out. It will index the data using the same timestamp of your DB.

Have you tried this method ??

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...