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!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...

[Puzzles] Solve, Learn, Repeat: Dereferencing XML to Fixed-length events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...