~/analytics/powerbi-how-connect-splunk-lookup-odbc-driver.md

Power BI - How to Connect to Splunk live connection with odbc Splunk driver

1 min readAugust 25, 2021by Gorav Singal#powerbi#splunk
// TL;DR

Install the Splunk ODBC driver, configure a DSN in Windows ODBC settings pointing to your Splunk instance, then connect Power BI to Splunk via the ODBC data source.

Power BI - How to Connect to Splunk live connection with odbc Splunk driver

Introduction

Power BI is a wonderful tool to give life to your data, by rendering awesome visualizations with the help of data.

In this post, we will learn how to connect to Splunk lookup by using Splunk ODBC driver.

Splunk ODBC Driver

Search for Splunk ODBC driver for windows, and you will get link to download the driver. The URL I got is: https://splunkbase.splunk.com/app/1606/

You need to signup to Splunk, only then you will be able to download the driver. And, then select your desired OS.

For windows, I got a zip file: splunk-odbc_311-windows.zip.

Unzip the file, and install the driver by choosing 32bit or 64bit installer file. In my case, its SplunkODBC64

The setup might ask for a splunk connection. You can leave it as it is for now.

Configure Splunk Connection with ODBC Driver

Open the ODBC app.

ODBC App

Under User DSN, click on Add button.

ODBC App Add connection

Give your data source a name. I gave: Splunk_api2

Put your username, and password. Also, put your Splunk URL (https://yourserver.com:443)

ODBC App connection

It will show something like:

Splunk connection

Power BI Configuration

Click on Get Data.

Power bi Data source

Search for odbc

Datasource search

Datasource odbc

Select your created odbc connection name

ODBC Source

Datasource ODBC Name

Once you select your connection, it fetches available lookups. And you can click on anyone of them, and it will also preview the data on right side.

ODBC Splunk Lookups

Once you import it, your selected data will be shown on the right side.

I hope you enjoyed the post.

$ subscribe --weekly

One deep dive a week, in your inbox

System design, AI engineering, trading systems and interview prep. Tested code, real numbers. Free, and you can unsubscribe any time.

or read it on gyanbyte.substack.com

Share

Latest Posts

How to Stay Valuable as a Software Engineer in the AI Era: A Practical Playbook

How to Stay Valuable as a Software Engineer in the AI Era: A Practical Playbook

In the previous article I argued that AI is not killing software engineering…

How to Review AI-Generated Code: A Checklist for Catching What the Model Missed

How to Review AI-Generated Code: A Checklist for Catching What the Model Missed

A few months back I approved a PR that was almost entirely AI-generated. It…

How to Debug AI-Generated Code: Understand First, Fix Last

How to Debug AI-Generated Code: Understand First, Fix Last

In the last article I wrote about reviewing AI code before it goes in. This one…

The Future of Software Engineering: What AI Changes, What Stays, and Where the Jobs Go

The Future of Software Engineering: What AI Changes, What Stays, and Where the Jobs Go

Every few weeks somebody sends me a scary headline — “AI will replace all…

The Transactional Outbox Pattern: Never Lose an Event Again

The Transactional Outbox Pattern: Never Lose an Event Again

This is one of those patterns that looks like nothing until you get burnt once…

Event Sourcing, Explained: Store What Happened, Not Just the Final State

Event Sourcing, Explained: Store What Happened, Not Just the Final State

Here is a question I like to ask in interviews: your bank account shows a…