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!

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...