Getting Data In

Different results when using the Splunk search bar versus searching over HTTP.

dacmc
New Member

For Splunk events with this kind of payload

[TS: Tue Jul 4 19:28:00 2017 PDT] [PPTID: tid1] [ABC: XYZ][ASD: YHG1] [ANDG: ldsnfn] [PPID: id1]

this query when fired using "Splunk search" returns

index=sampleindex sourcetype=samplesourcetype alt text

gives output like this
PPTID PPID TS
tid1 id1 Tue Jul 4 19:28:00 2017 PDT

When I fire the same search over HTTP to Splunk server , the query never returns

alt text

How should the query be for using over http ?

Splunk version: 6.6.3

Tags (2)
0 Karma

akheraj_splunk
Splunk Employee
Splunk Employee

Have you tried the curl --data-urlencode option instead of -d? I suspect it's because your query is being mangled in transport. Do the Splunk logs give you any information on the search that was received when sent my curl?

0 Karma
Get Updates on the Splunk Community!

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

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...