All Apps and Add-ons

splunk Dbconnect - index issue

DataOrg
Builder

i have 2 fields with open _issue_timestamp and closed_issue_issue.
when the ticket is opened the time will be updated in opened_issue and once action is taken the timestamp will be updated in closed_issue column later point of time.
so if we configure DB_input using ID it will not capture the closed_issue column when a new Ticket is opened ?
how to over come this issue?

0 Karma
1 Solution

nickhills
Ultra Champion

For updated rows to be processed by DBX you need a rising column value which changes whenever the row is updated.

Commonly, databases may have an "updated" column in which the timestamp or an incremental unique ID is modified whenever any other column in that record is amended.
If you have such a field in your database, you should use this value as the rising column, and sort the table results by "updated".

If your database does not have such a column, your choices are:
Have it introduced by the developers/dba
Use a batch process to import rows on a schedule - in many cases this will likely lead to some data duplication, so you will need to deduplicate, or otherwise handle this in Splunk

https://docs.splunk.com/Documentation/DBX/3.2.0/DeployDBX/Createandmanagedatabaseinputs

If my comment helps, please give it a thumbs up!

View solution in original post

0 Karma

nickhills
Ultra Champion

For updated rows to be processed by DBX you need a rising column value which changes whenever the row is updated.

Commonly, databases may have an "updated" column in which the timestamp or an incremental unique ID is modified whenever any other column in that record is amended.
If you have such a field in your database, you should use this value as the rising column, and sort the table results by "updated".

If your database does not have such a column, your choices are:
Have it introduced by the developers/dba
Use a batch process to import rows on a schedule - in many cases this will likely lead to some data duplication, so you will need to deduplicate, or otherwise handle this in Splunk

https://docs.splunk.com/Documentation/DBX/3.2.0/DeployDBX/Createandmanagedatabaseinputs

If my comment helps, please give it a thumbs up!
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 ...