Splunk AppDynamics

Unable to see custom metrics in controller UI

apurvaonprem
Explorer

Hi Team,

I have written a small script(LinecountMonitor.sh) which counts the number of lines in the file. I can see the metrics in logs, But unable to see in controller UI. A restart of machine agent is not helping.

Each time when I remove the script and replace it, It shows the metric in UI only once. After I update the lines in the script the updated value shows in logs but not in UI. 

Can you please help me with this.

Below are my logs:( line count shows 17 but same is not displayed in UI. UI shows path Custom Metrics|Linux Monitor|LineCount|TestFile but with no data)

[Log files redacted]

Thanks,

Apurva

^ Post edited by @Ryan.Paredez to remove log files. Please do not share or attach log files to community posts for security and privacy reasons.

Labels (1)
Tags (1)
0 Karma
1 Solution

apurvaonprem
Explorer

Hi Selvaganesh,

Thankyou for acknowledging my query.

I rechecked the path, It looks correct to me. On further investigation I found that when I add a loop to the script the metricis  continuously  sent to Controller UI.

Issue got solved.

Thanks,

Apurva

View solution in original post

SelvaganeshE
Explorer

Hello Apurva,

I guess you have changed some script values but forgot to update the same in the Metric path. For example, If you change the value for countOf Entries to EntriesCount then you can see the path upto Custom Metrics|CustomLogMonitor|Port Monitor|Total No.of.Entries but with no data. 

"name=Custom Metrics|CustomLogMonitor|Port Monitor|Total No.of.Entries,value=$countofEntries"

I suggest you check the values in the path which you have mentioned in the script. 

Thanks,

Selvaganesh E

0 Karma

apurvaonprem
Explorer

Hi Selvaganesh,

Thankyou for acknowledging my query.

I rechecked the path, It looks correct to me. On further investigation I found that when I add a loop to the script the metricis  continuously  sent to Controller UI.

Issue got solved.

Thanks,

Apurva

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...