Open siddharthajuprod07 opened 4 years ago
@siddharthajuprod07 could you try the latest version of Eventgen 7.1.0 on Splunk 8.0 on Linux platform that solves this issue? Currently there is a bug in Splunk preventing it working properly on Windows platform.
Is your feature request related to a problem? Please describe. Yes. Splunk eventgen app is not able to initialize jinja template because the code is resolving to a path "$SPLUNK_HOME\etc\apps\SA-Eventgen\lib\plugins\generator" , which doesn't exists. Below is my environment details, OS : Windows Splunk Version : 8.0.1 Eventgen Version : 6.5.2 (as eventgen 7 still not work with splunk 8) python version : both python2 and python3 having same issue.
Describe the solution you'd like Splunkbase eventgen should work with jinja template.
Describe alternatives you've considered I did some findings from my end to fix this but no luck. I followed the below steps after seeing the code of eventgen , roughly in the below order modinput_eventgen.py >> eventgen_core.py >> eventgentimer.py >> eventgenconfig.py >> eventgenexceptions.py >> eventgen_core.py (as the exception PluginNotLoaded handled here) && jinja.py
The steps I followed,
Now I am receiving the below error.
The error is coming from utils.py under jinja2 in last line,
from markupsafe import Markup, escape, soft_unicode
Initially I was thinking this is related to python issue but when I changed the python version in server.conf its not able to initialize the modular input.
Additional context None.