Users were using SPL query to see the license usage report;
For e.g. the search is:
index=_internal [`set_local_host`] source=*license_usage.log* type="Usage" | eval h=if(len(h)=0 OR isnull(h),"(SQUASHED)",h) | eval s=if(len(s)=0 OR isnull(s),"(SQUASHED)",s) | eval idx=if(len(idx)=0 OR isnull(idx),"(UNKNOWN)",idx) | bin _time span=1d | stats sum(b) as b by _time, pool, s, st, h, idx | timechart span=1d sum(b) AS volumeB by idx fixedrange=false | join type=outer _time [search index=_internal [`set_local_host`] source=*license_usage.log* type="RolloverSummary" earliest=-30d@d | eval _time=_time - 43200 | bin _time span=1d | dedup _time stack | stats sum(stacksz) AS "taille de stack" by _time] | fields - _timediff | foreach * [eval <<FIELD>>=round('<<FIELD>>'/1024/1024/1024, 3)] | fields - "taille de stack"
The given below error is being noticed while running the above SPL query:
Error in 'script': Getinfo probe failed for external search command 'return.'
| rest splunk_server=local /services/server/info | return host | noop log_DEBUG=*b. Notice the following errors in search logs:
1) Error in 'script': Getinfo probe failed for external search command 'return'.2) 02-24-2022 11:39:13.017 ERROR ScriptRunner [3554439 searchOrchestrator] - stderr from '/opt/splunk/bin/python3.7 /opt/splunk/etc/apps/search/bin/return.py __GETINFO__ host': ImportError: cannot import name 'format_exc' from 'traceback' (/opt/splunk/lib/python3.7/traceback.py)c. In /opt/splunk/etc/apps/search/bin/ you can find a custom token.py script:
rwxr-xr-x 1 root root 490 8 févr. 14:47 token.py -rwxr-xr-x 1 root root 564 8 févr. 14:54 tokentest.py -rw-r--r-- 1 root root 614 16 mars 14:33 token.pycThe above given custom python scripts are conflicting with the standard token.py script.
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
29-Sep-2026
|
Initial Release |