Splunk Dev

Truncated _raw field with Python SDK

bradp123
Path Finder

Hello,

I am following the python SDK examples to pull data from a job. Here is my search code:


...
searchquery_normal = "search block | head 20"
job = service.jobs.create(searchquery_normal)
...
for result in results.ResultsReader(job.results()):
print result["_raw"]

When I get the results back I am only getting a portion of the text in the raw field. In the GUI I get the full log text, in the SDK the text truncates after the work "block". Is this normal Splunk behavior? How do I get the full line of text?

Tags (2)
0 Karma

bradp123
Path Finder
0 Karma
Get Updates on the Splunk Community!

Introducing a Smarter Way to Discover Apps on Splunkbase

We’re excited to announce the launch of a foundational enhancement to Splunkbase: App Tiering. Because we’ve ...

How to Send Splunk Observability Alerts to Webex teams in Minutes

As a Developer Evangelist at Splunk, my team and I are constantly tinkering with technology to explore its ...

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...