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!

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 ...

Buttercup Games: Further Dashboarding Techniques (Part 5)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Customers Increasingly Choose Splunk for Observability

For the second year in a row, Splunk was recognized as a Leader in the 2024 Gartner® Magic Quadrant™ for ...