Splunk AppDynamics

Regex in PHP Transaction Detection Rules is not working

Muhammad_Husnai
Engager

I am inputting my regex in PCRE format and it's still not working. I am trying to exclude all static resources in one Regex.

(?i).*\.(jpeg|jpg|png|gif|jpeg|pdf|txt|js|html|tff|css|svg|png|pdf|dll|yml|yaml|ico|env|gz|bak)$

Labels (1)
Tags (4)
1 Solution

Muhammad_Husnai
Engager

I have found solution. for PHP Agent regex needs to wrapped in # sings. After i used my regex as below it worked

#(?i).*\.(jpeg|jpg|png|gif|jpeg|pdf|txt|js|html|tff|css|svg|png|pdf|dll|yml|yaml|ico|env|gz|bak)$#

View solution in original post

iamryan
Community Manager
Community Manager

Hi @Muhammad Husnain.Ashfaq,

Thank you for coming back to the community and sharing the solution! 

0 Karma

Muhammad_Husnai
Engager

I have found solution. for PHP Agent regex needs to wrapped in # sings. After i used my regex as below it worked

#(?i).*\.(jpeg|jpg|png|gif|jpeg|pdf|txt|js|html|tff|css|svg|png|pdf|dll|yml|yaml|ico|env|gz|bak)$#

iamryan
Community Manager
Community Manager

Hi @Muhammad Husnain.Ashfaq,

It's been a few days and it seems the Community has not jumped in with a reply. Did you happen to make a discovery or find a solution you could share?

If you have not, you can try contacting AppDynamics Support: How do I submit a Support ticket? An FAQ 

Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...