All Apps and Add-ons

Eventgen: Getting "ImportError: No module named sharedctypes". Why is this module missing in 6.4 and how do I add it?

rbigeard
Explorer

I'm trying to run the Eventgen app on a Splunk 6.4 installation. It runs fine in thread mode, but fails in "process" mode with the following errors in the logs:

05-25-2016 09:50:51.182 +1000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/eventgen/bin/eventgen_modinput.py" ImportError: No module named sharedctypes
05-25-2016 10:30:08.534 +1000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/eventgen/bin/eventgen_modinput.py"     from multiprocessing.sharedctypes import RawValue

sharedctypes.py is indeed not found in the python deployment coming with 6.4.

What is the cleanest way to add this module?

0 Karma

nzou_splunk
Splunk Employee
Splunk Employee

I met this same error today and I guess you're trying to use event gen to do the scripted input, right? if so, you need to put an eventgen.conf file under you app/default folder. this works for me. You can have a try.

BTW, you can move eventgen/lib/eventgen_defaults to your app/default folder and rename it as eventgen.conf.
Or just move it:
mv ...../lib/eventgen_defaults ....app/default/eventgen.conf

0 Karma
Get Updates on the Splunk Community!

What’s New & Next in Splunk SOAR

Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us on ...

Your Voice Matters! Help Us Shape the New Splunk Lantern Experience

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

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