Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

add custom component name in web_service.log

$
0
0
Hi I'm working on an splunk base app (Uploader). In this app, the python code upload.py calls splunk logger. When I have log I can find them in web_service.log like this: 2017-10-02 10:21:50,312 WARNING [59d1f71e4a7fc12c396e90] :111 - #################################File extension is not a csv Instead of `` I would like to have at least application name or filename (ie Uploader or upload.py). So I will see in log: 2017-10-02 10:21:50,312 WARNING [59d1f71e4a7fc12c396e90] upload.py:111 - #################################File extension is not a csv For yet I haven't find how to achieve this. Does anyone have an answer or an idea?

Viewing all articles
Browse latest Browse all 47296

Trending Articles