Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Navaneetharaju_
Helper II
Helper II

How to Connect Splunk data using rest api

Hi All,

 

I need to connect the splunk data in power bi. we don't have the connectors to connect the splunk data in power bi. I need guidance to access the data in power and build stats.

 

referred links - https://github.com/SteveWinward/PowerBI/blob/master/WriteUps/splunk.md

 

In this link, they have mentioned some key steps to achieve my requirement, but i have tried. It's not working , while accessing the URL, getting this error.

Navaneetharaju__0-1695620502760.png

 

1 REPLY 1
123abc
Community Champion
Community Champion

Connecting Splunk data to Power BI using the REST API is possible but requires careful configuration and troubleshooting. Here's a general guide on how to do it:

  1. Understand Your Splunk Data: Make sure you have a good understanding of your Splunk data. Know which data you want to extract and analyze in Power BI.

  2. Configure Splunk: Ensure that your Splunk instance is set up properly and has REST API access enabled. You might need administrative access to configure this.

  3. Create a Splunk API Token:

    • In Splunk, navigate to "Settings" > "Access Controls" > "API Tokens."
    • Create a new API token with the necessary permissions to access the data you need.
  4. Build the REST API Query URL:

    • Use the Splunk REST API to query your data. The URL structure typically looks like this:

bash

https://your-splunk-instance:port/services/search/jobs/export

 

    • You'll need to include query parameters in the URL to specify your search query, time range, and any other relevant parameters.

  1. Authentication:

    • You might need to provide authentication credentials in your API request. This could be in the form of HTTP Basic Authentication, API Token, or OAuth, depending on how your Splunk instance is configured.
  2. Power Query in Power BI:

    • In Power BI, go to the "Home" tab, and click on "Get Data."
    • Choose "Web" as your data source.
    • Enter the REST API URL you constructed earlier.
    • Configure authentication if required.
    • Import the data into Power BI.
  3. Data Transformation:

    • You may need to transform the data in Power Query to make it suitable for your reports. This may involve renaming columns, filtering rows, or aggregating data.
  4. Data Modeling and Visualization:

    • Create the necessary data models and visualizations in Power BI to analyze and present your Splunk data.
  5. Schedule Data Refresh:

    • If you want your Power BI reports to stay up to date, schedule a data refresh based on your data source update frequency.
  6. Troubleshooting:

    • If you encounter errors while accessing the Splunk data, refer to the Splunk logs and Power BI error messages to diagnose the issue.
    • Ensure that your Splunk API token and permissions are correctly configured.
    • Verify that your query URL is constructed properly and the authentication credentials are correct.
    • Check if there are any network or firewall issues that might be preventing the connection.
  7. Documentation and Support:

    • Consult the Splunk and Power BI documentation for any specific guidance related to your setup.
    • Reach out to Splunk and Power BI support communities or forums for help if you encounter specific issues.

Please note that the exact steps and configuration details may vary depending on your specific Splunk and Power BI setups, so it's essential to refer to the official documentation and seek assistance from your organization's IT or data teams if needed.

 
 
 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.