Getting Data In

Search.Jobs.Export CSV Results - Python SDK

cchadwick75
New Member

I am using the most current version of Python - Splunk SDK. I am currently upgrading from Python 2.7 to 3.6.

This code works for python 2.7 and returns A CSV (correct response). When implementing the same code below and search the response is a ResponseReader Object for 3.6. Can someone explain why I would get 2 different responses when upgrading to 3.6?

kwargs_export = {
        "search_mode": "normal",
        "output_mode": "csv"
                    }
create_search_results = service.jobs.export(myquery, **kwargs_export)
for item in create_search_results:
    print(create_search_results)
0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

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

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...