Splunk Dev

How can I import the splunk.entity module?

danielbb
Motivator

We see the following -

 

/opt/apps/splunk/etc/apps/FireEye_iSIGHT_Splunk_App/bin
[splunk@qcsplapps bin]$ python tail_f.py
Traceback (most recent call last):
  File "tail_f.py", line 2, in <module>
    from common import ISIGHT_ADDON_LOGS, get_curr_epoc_time, SPLUNK_LOG_DIR, LOCAL_CONFIG, DEFAULT_CONFIG
  File "/opt/apps/splunk/etc/apps/FireEye_iSIGHT_Splunk_App/bin/common.py", line 23, in <module>
    import splunk.entity as entity
ImportError: No module named splunk.entity

 

What do we need to do in order to import the splunk.entity module?

Labels (1)
0 Karma

MoniM
Communicator

@danielbb  Did you find any solution to the above issue?

0 Karma

thambisetty
SplunkTrust
SplunkTrust

@danielbb 

$SPLUNK_HOME/lib/python2.7/site-packages/splunk/entity.py
$SPLUNK_HOME/lib/python3.7/site-packages/splunk/entity.py

————————————
If this helps, give a like below.
0 Karma
Get Updates on the Splunk Community!

Index This | What’s a riddle wrapped in an enigma?

September 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...

BORE at .conf25

Boss Of Regular Expression (BORE) was an interactive session run again this year at .conf25 by the brilliant ...

OpenTelemetry for Legacy Apps? Yes, You Can!

This article is a follow-up to my previous article posted on the OpenTelemetry Blog, "Your Critical Legacy App ...