Splunk Search

How can i get cpu time for each component in log files?

vasavigangana
Explorer

Hai

    i have some installation logfiles and i want to caluculate cpu time for each components(success and falied cases)...
Tags (1)
0 Karma

chimell
Motivator

Hi
Try this search code

     index="_internal" source="*metrics.log" group="pipeline" 
        | chart sum(cpu_seconds) over processor | sort -sum(cpu_seconds)
        |rename sum(cpu_seconds) as "Total CPU Seconds"
0 Karma

fdi01
Motivator

try like this:
index=_internal status=failure OR status=success |stats values(status) as status by _time

to have time of differents status .

0 Karma

NOUMSSI
Builder

Hi,
Here is the search code:

index=_internal status=failure OR status=success | timechart c by status
0 Karma
Get Updates on the Splunk Community!

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...

Splunk Up Your Game: Why It's Time to Embrace Python 3.9+ and OpenSSL 3.0

Did you know that for Splunk Enterprise 9.4, Python 3.9 is the default interpreter? This shift is not just a ...