Splunk Search

DB Connect not resolving MySQL Table column names

sanujss
Explorer

I have connected to a MySQL Table which has 10 columns using DB Connect. It gets the data in search. But in the search, it doesn't show as columns in "Table" view.I can see all the fields as comma separated in Raw and List format. What to do for this ?

0 Karma
1 Solution

sanujss
Explorer

Finally got it fixed . I used Key Value as the source type than CSV. Now it is perfectly resolving the columns without any additional configuration changes 🙂

View solution in original post

0 Karma

sanujss
Explorer

Finally got it fixed . I used Key Value as the source type than CSV. Now it is perfectly resolving the columns without any additional configuration changes 🙂

0 Karma

sanujss
Explorer

Also, When I do DB Queries, it is properly showing as columns. But I don't want to run queries every time and it could affect the DB performance as it tries to run complex queries

0 Karma

sanujss
Explorer

It is showing data. But all the columns are clubbed together and showing in one column. If I load a CSV file, and view in table mode, it resolves the column names and shows like a neat table. But that is not happening when I connect the DB directly

0 Karma

araitz
Splunk Employee
Splunk Employee

I'm not sure I quite understand. Do you mean that when you look at the results in the search view "table" mode, nothing shows up? If so, can you try adding " | table *" to the end of your search?

0 Karma

treywebb
Explorer

Add the fields as selected fields and they should then show up in the table view.

0 Karma

sanujss
Explorer

the fields are not showing up for selection. that is the issue

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...