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!

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 ...

UCC Framework: Discover Developer Toolkit for Building Technology Add-ons

The Next-Gen Toolkit for Splunk Technology Add-on Development The Universal Configuration Console (UCC) ...

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...