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.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...