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!

Why You Can't Miss .conf25: Unleashing the Power of Agentic AI with Splunk & Cisco

The Defining Technology Movement of Our Lifetime The advent of agentic AI is arguably the defining technology ...

Deep Dive into Federated Analytics: Unlocking the Full Power of Your Security Data

In today’s complex digital landscape, security teams face increasing pressure to protect sprawling data across ...

Your summer travels continue with new course releases

Summer in the Northern hemisphere is in full swing, and is often a time to travel and explore. If your summer ...