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!

Observability Unlocked: Kubernetes Monitoring with Splunk Observability Cloud

  Ready to master Kubernetes and cloud monitoring like the pros?Join Splunk’s Growth Engineering team for an ...

Wrapping Up Cybersecurity Awareness Month

October might be wrapping up, but for Splunk Education, cybersecurity awareness never goes out of season. ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

🗣 You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...