All Apps and Add-ons

DBconnect Database name with date

MaverickT
Communicator

I am trying to connect to Forefront Threat Management Gateway (ISA/TMG) SQL server database. I have succeeded to connect to database, but there is environment specific barrier that I came across. TMG is configured to create MSDB database for every single day and store logs in there. Is there any way to configure DBconnect to set database by date? Or is there some other workaround that can be used? Changes on TMG server are unfortunately not an option.

Last resort option is to run job every day that changes database.conf and reloads configuration, but I would like to solve it differently.

0 Karma
1 Solution

HiroshiSatoh
Champion

Reboot is required When you change the Splunk.
You use the [Stored Procedure] by creating a database for the connection from the Splunk is but what?
The database name to connect to it converted by [Stored Procedure].

alt text

View solution in original post

HiroshiSatoh
Champion

Reboot is required When you change the Splunk.
You use the [Stored Procedure] by creating a database for the connection from the Splunk is but what?
The database name to connect to it converted by [Stored Procedure].

alt text

MaverickT
Communicator

Thanks for the tip, I didn't came up with that workaround idea. I made stored procedure and now it works like a charm. I had slight problems how to use {{WHERE $rising_column$ > ?}} for that stored procedure, as there is no ID column, but I had later solved on MS SQL level, remembering the last time stored procedure was called.

0 Karma

brewerv
Engager

Aloha we would like to know more about the TMG server sql database and forwarding the logs to Splunk from the database.

0 Karma

kiran331
Builder

Hi MaverickT, Can you let me know the deatails for connecting to TMG server sql database?

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...

Introduction to Splunk AI

How are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. Lucky for ...