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!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...