Splunk Dev

splunk.Intersplunk list of dict outputs fine on command line, but why do I get no results in Splunk GUI?

dominiquevocat
SplunkTrust
SplunkTrust

I have a script where I use suds to wrap calls to a SOAP service.
The results I get are in the form of a list of dicts. I can pass this just fine to splunk.Intersplunk
When I run it on the commandline with cmd python myscript.py, it dumps a CSV to stdout as expected.
When I run it from within Splunk, I get "no results".

I am somewhat befuddled.

Sample output of splunk.Intersplunk.ouputResults on the command line is:

isprotected,tkstatus_alwaysuseprimeline,nationalprefix,usedevicepoolcgpntransformcssnatl,sshpassword,fkcallingsearchspace_cgpnunknown,ikdevice_defaultprofile,fkdialrules,ikdevice_primaryphone,tkcalmode,fkcallingsearchspace_callednational,fkcallingsearchspace_cgpnsubscriber,tkproduct,usedevicepoolcgpntransformcss,fkcallingsearchspace_cdpntransform,sendgeolocation,nationalstripdigits,calledinternationalprefix,pstnaccess,fksoftkeytemplate,tkdevicetrustmode,fkmatrix_presence,tksipcodec_mtppreferredorigcodec,usedevicepoolcgpntransformcsssubs,tknetworklocation,tksipassertedtype,fkwifihotspotprofile,requirecerlocation,allowcticontrolflag,authenticationstring,fkmediaresourcelist,fkmobilesmartclientprofile,packetcaptureduration,calledunknownprefix,calreference,fkcallingsearchspace_cgpnnational,fkgeolocationfilter_lp,publickey,callednationalprefix,enableixchannel,datetimeinserted,srtpfallbackallowed,tkphonepersonalization,fkcallingsearchspace_calledsubscriber,fkcallingsearchspace_rdntransform,tkuserlocale,tkproduct_base,subunit,allowcfbcontrolofcallsecurityicon,requiredtmfreception,resettoggle,usedevicepoolcalledcssunkn,v150modemrelaycapable,fkdevicepool,callednationalstripdigits,fkcallingsearchspace,usedevicepoolcgpningressdn,fkcallingsearchspace_cgpningressdn,internationalprefix,fkcallingsearchspace_refer,fkvipre164transformation,fkcallmanagergroup,name,fkgeolocation,md5hash,tkdndoption,usedevicepoolcalledcssintl,isstandard,hotlinedevice,fkcallingsearchspace_reroute,tkstatus_alwaysuseprimelineforvm,tkdtmfsignaling,calledunknownstripdigits,tkprotocolside,isrpidenabled,tkpreemption,dndtimeout,allowhotelingflag,fklocation,ispaienabled,calledsubscriberprefix,mtprequired,tkstatus_usetrustedrelaypoint,unknownstripdigits,tkbarge,usedevicepoolcgpntransformcssintl,fkprocessnode,tkstatus_devicemobilitymode,tkpacketcapturemode,routelistenabled,fkcallingsearchspace_calledintl,fkenduser_mobility,fksipprofile,tkphoneservicedisplay,tksipprivacy,tkdeviceprotocol,fkaarneighborhood,tkringsetting_dnd,upgradefinishtime,istrustedrelaypoint,fkenduser,ndescription,usedevicepoolcalledcssnatl,earlyoffersupportforvoicecall,isactive,versionstamp,msisdn,tkdeviceprofile,pkid,enablebfcp,calledinternationalstripdigits,tkstatus_joinacrosslines,description,fkmlppdomain,fkcallingsearchspace_cgpnintl,tkmodel,userholdmohaudiosourceid,fkwirelesslanprofilegroup,networkholdmohaudiosourceid,tkqsig,unknownprefix,ctiid,transmitutf8,srtpallowed,tkcertificatestatus,unit,fkcommonphoneconfig,retryvideocallasaudio,fkphonetemplate,calledsubscriberstripdigits,fksecurityprofile,fkcallingsearchspace_cgpntransform,defaultdtmfcapability,tkkeyauthority,tkstatus_builtinbridge,sshuserid,isdualmode,enablegatewayrecordingqsig,usedevicepoolrdntransformcss,tkcountry,usedevicepoolcgpntransformcssunkn,fkfeaturecontrolpolicy,rfc2833disabled,deviceleveltraceflag,internationalstripdigits,fkcommondeviceconfig,fkcallingsearchspace_restrict,fkcallingsearchspace_calledunknown,tkreset,tkclass,dialplanwizardgenid,ignorepi,subscriberprefix,runonallnodes,remotedevice,enablecallroutingtordwhennoneisactive,fkcallingsearchspace_aar,tkcertificateoperation,usedevicepoolcdpntransformcss,specialloadinformation,tkstatus_mlppindicationstatus,usedevicepoolcalledcsssubs,tkstatus_audiblealertingidle,subscriberstripdigits,tkoutboundcallrollover,tkstatus_audiblealertingbusy,unattended_port,huntlistforvm
> f,2,Default,t,,,,,,,,,390,t,,f,,Default,t,,0,ad243d17-98b4-4118-8feb-5ff2e1b781ac,2,t,2,0,,f,t,,,,0,Default,-1,,,,Default,f,,f,3,,,,,0,f,f,t,t,f,f4f3bbb8-fad1-4378-a1df-0c6668b2270a,,3b85df10-6c5d-494c-89c7-609faef8bce4,t,,Default,,,,xxx,,,0,t,f,f,,2,1,,1,t,0,0,f,45bfc6f0-42be-4267-93a4-0a49c1ff7d41,t,Default,f,2,,0,t,,1,0,f,,,9ccc7879-b4c1-c7d5-019b-d9a0b48bf510,3,0,11,,,,f,a37932e7-af0a-4f5f-85d5-5295a4677c08,xxxx,t,f,t,1437673458-a249475f-3b50-48b0-b7d8-7d574d901798,,0,3c2bfe33-7430-4971-0ff3-56ed990210a8,f,,0,xxx,,,503,,,,4,Default,1613,f,f,1,0,ac243d17-98b4-4118-8feb-5ff2e1b781ac,t,8e1a10fa-a52c-4435-a4ec-540d266c8c37,,685f45c3-9a32-6e76-6d11-14f33da634f8,,0,0,1,,f,f,t,,t,,f,f,,5e828353-0e17-4c90-8986-0717342b0118,7854f3fb-8004-d176-838f-c1dc475b7d0e,,1,1,,f,Default,f,f,f,,1,t,,0,t,2,,0,2,f,f

In the search log, the message is:

12-11-2015 13:50:22.146 INFO  script - Invoked script myscript with 205 input bytes (0 events).  Returned 0 output bytes in 7539 ms.

When I redirect the output into a CSV file in /opt/splunk/var/run/splunk/ and I can properly view it with | inputcsv xxx.csv, so it's not something in the data.

I am quite confused...

1 Solution

dominiquevocat
SplunkTrust
SplunkTrust

The command can not contain an "_" in the name.

hits head against the wall

View solution in original post

dominiquevocat
SplunkTrust
SplunkTrust

The command can not contain an "_" in the name.

hits head against the wall

Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...