Monitoring Splunk

splunklib.client after importing logs my_app logs in splunkd.log

pbankar
Path Finder

Im using splunklib.client to encrypt the password as -

import splunklib.client as splunk_client
def save_pass(session_key ):
    args = {'token': session_key, 'app': "my_app"}
    service = splunk_client.Service(**args)
    for storage_password in service.storage_passwords:
        if storage_password.username == username and storage_password.realm == realm:
            return storage_password.content.clear_password

Now when I making an API call the INFO logging which is logging into the my_app.log is also logged in the splunkd.log as -

05-22-2018 17:02:48.102 +0530 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/MY_APP/bin/script.py" INFO:MyAppPlatform :Making request: APIdetailsURI

I'm not getting a single clue why is it happening. Please do help.

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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