AppD Archive

“Custom Command Alert” that reads a file for a value fails

CommunityUser
Splunk Employee
Splunk Employee

I’m having trouble building a “Custom Command Alert” that reads a file for a value.  I want to do something like:

grep “some string” /path/somefile | wc –l

where the returned value would be “2” under normal circumstances, and “1” or “0” in the event of a failure of the monitored metric.

I have put the file in my home directory with 644 privileges, and alternatively in/data/app/instances/AppDynamics/MachineAgent/monitors/MySQLMonitor and owned by the linux “appdynamics” user, but no success in either case.

Any suggestions? 

Tags (1)
0 Karma

Arun_Dasetty
Super Champion

Hi Loren,

We see you have raised help ticket for the same , we would like to inform that support team already working internally to provide build that could help us provide more logging to debug further, we will keep you posted on help ticket raised.

Regards,

Arun

0 Karma
Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...