Getting Data In

Splunk DB Connect - data formating

Acxon1
Observer

Hey everyone!

Lately we had an unfortunate incident were most of our logs were deleted from splunk. Luckily we saved the same data at our PostgreSQL DB.   

To restore those logs, I want to export the PostgreSQL data via Splunk DB Connect.  

I've read about the app and it looks like it can solve most of my concerns. My main issue that I couldn't find solution for is data formating.   

To make it backwards compatible to our logs format, I want to parse the db table rows by:

1. Sending the data to splunk as a json 

2. Add some custom key:value pairs (that are based / can be calculated from the database row)

3. Not include specific table columns

4. Append metadata to the logs (already found that this point is possible)

 

Is there a way of achieving those wishes without working with raw SQL?

If not, can I see an example of raw SQL that generates the wanted splunk log?

Also, is there any other way of exporting & importing data from postgres to splunk that can solve this issue?

 

Thank you!

Labels (1)
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 ...