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!

Say goodbye to manually analyzing phishing and malware threats with Splunk Attack ...

In today’s evolving threat landscape, we understand you’re constantly bombarded with phishing and malware ...

AppDynamics is now part of Splunk Ideas

Hello Splunkers, We have exciting news for you! AppDynamics has been added to the Splunk Ideas Portal. Which ...

Advanced Splunk Data Management Strategies

Join us on Wednesday, May 14, 2025, at 11 AM PDT / 2 PM EDT for an exclusive Tech Talk that delves into ...