Splunk Search

REST API returns empty results when GET result

Hamidreza74
Explorer

I use API to create search
https://[IPaddress]:8089/services/search/jobs
Body:
search sourcetype = ipfix | regex destinationIPv4Address = "^(12\.10\.2\.(?:[0-9]|[1-9][0-9]|1(?:[0-9][0-9])|2(?:[0-4][0-9]|5[0-5])))$" | stats sum(eval(octetDeltaCount/4)) as Traffic count(Sequence) as Hint values(protocol) by sourceIPv4Address destinationIPv4Address protocolIdentifier destinationTransportPort sourceTransportPort | eval protocol=case(protocolIdentifier ==1 ,"ICfMP", protocolIdentifier ==4 ,"IP", protocolIdentifier ==6 ,"ICfMP", protocolIdentifier ==17 ,"UDP",protocolIdentifier ==88 ,"EIGRP",protocolIdentifier ==89 ,"OSPF",protocolIdentifier ==103 ,"PIM",protocolIdentifier ==143 ,"EThernet") | stats sum(eval(abs(Hint/4))) as TotalHint values(sourceIPv4Address) values(sourceTransportPort) values(destinationIPv4Address) values(destinationTransportPort) values(description) values(protocol) values(protocolIdentifier) values(Traffic) by sourceIPv4Address destinationIPv4Address protocolIdentifier | append [search sourcetype %3d ipfix | regex sourceIPv4Address = "^(12\.10\.2\.(?:[0-9]|[1-9][0-9]|1(?:[0-9][0-9])|2(?:[0-4][0-9]|5[0-5])))$" | stats sum(eval(octetDeltaCount/4)) as Traffic count(Sequence) as Hint values(protocol) by sourceIPv4Address destinationIPv4Address protocolIdentifier destinationTransportPort sourceTransportPort | eval (protocol=case(protocolIdentifier ==1 ,"ICfMP", protocolIdentifier ==4 ,"IP", protocolIdentifier ==6 ,"ICfMP", protocolIdentifier ==17 ,"UDP",protocolIdentifier ==88 ,"EIGRP",protocolIdentifier ==89 ,"OSPF",protocolIdentifier ==103 ,"PIM",protocolIdentifier ==143 ,"EThernet") | stats sum(eval(abs(Hint/4))) as TotalHint values(sourceIPv4Address) values(sourceTransportPort) values(destinationIPv4Address) values(destinationTransportPort) values(description) values(protocol) values(protocolIdentifier) values(Traffic) by sourceIPv4Address destinationIPv4Address protocolIdentifier]

but when I use GET to receive result I receive 204 no content message
HTTPS://[Ip address]:8089/services/search/jobs/1619301754.208/results
I used  %3d  instead of = in the sourcetype but it does not work
anybody faced this issue?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

Data Management Digest – May 2026

Welcome to the May 2026 edition of Data Management Digest!   As your trusted partner in data innovation, the ...