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!

What’s New in Splunk Enterprise 9.4: Tools for Digital Resilience

What’s New in Splunk Enterprise 9.4: Tools for Digital ResilienceTune in to What’s New in Splunk Enterprise ...

Get Schooled with Splunk Education: Explore Our Latest Courses

At Splunk Education, we’re dedicated to providing incredible learning experiences that cater to every skill ...

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...