How to deal with $ in the path for xml configuration for splunk for getting logs

37 Views Asked by At

I have this xml configuration for splunk to get logs and I used it to register the splunk agent

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE logging SYSTEM "loggingdg">
<logging id="xyx" version="3">
    <file>
        <pattern>\\xyz\abc$\sample\*txt</pattern>
    </file>
</logging>

but I am not able to see the logs in splunk dashboard, and I have come to know the issue is that the path (pattern) should not contain $ and the legal set of characters are a-zA-Z0-9._-*/:\ , so what I can do in these case?

I register the above xml file for splunk but I am not able to see the logs.

0

There are 0 best solutions below