I have the following setup:-
Splunk Universal Forwarder 6.1.6
OS - AIX
jms_ta - 1.3.8
python3
Java 1.7.0
When we run the jms..py --scheme command, we see this
./splunk cmd /opt/bin/python3 ../etc/apps/jms_ta/bin/jms.py --scheme
Traceback (most recent call last):
File "../etc/apps/jms_ta/bin/jms.py", line 122, in
do_scheme()
File "../etc/apps/jms_ta/bin/jms.py", line 52, in do_scheme
run_java()
File "../etc/apps/jms_ta/bin/jms.py", line 71, in run_java
if (not os.environ.has_key('JAVA_HOME')):
AttributeError: '_Environ' object has no attribute 'has_key'
When we restart splunk service we see this:
ERROR ModularInputs - Unable to initialize modular input "jms" defined inside the app "jms_ta": Introspecting scheme=jms: Unable to run "python /opt/splunkforwarder/etc/apps/jms_ta/bin/jms.py --scheme": child failed to start: No such file or directory
ERROR ModularInputs - Introspecting scheme=jms: Unable to run "python /opt/splunkforwarder/etc/apps/jms_ta/bin/jms.py --scheme": child failed to start: No such file or directory
INFO SpecFiles - Found external scheme definition for stanza "jms://" with 23 parameters: jndi_initialcontext_factory, jndi_provider_url, jndi_user, jndi_pass, destination_user, destination_pass, jms_connection_factory_name, durable, index_message_properties, index_message_header, message_selector, strip_newlines, init_mode, local_init_mode_resource_factory_impl, local_init_mode_resource_factory_params, message_handler_impl, message_handler_params, client_id, user_jndi_properties, browse_queue_only, browse_frequency, browse_mode, jvm_system_properties
JAVA_HOME
SPLUNK_HOME
and CLASSPATH are all set
Any thoughts ??
... View more