from below words I would like to get only value 497 and that has to be timechart with actual value, how do I do that?
G1 Young Generation GC in 497ms.
WARN [Service Thread] 2020-03-26 16:45:30,391 GCInspector.java:282 - G1 Young Generation GC in 497ms. G1 Eden Space: 683671552 -> 0; G1 Old Gen: 2290144840 -> 2009072128; G1 Survivor Space: 67108864 -> 62914560;
Extract the value using
... | rex "GC in (?<GCtime>\d+)"
values function to display all GCtime values that were seen in the given interval.
... | timechart span=1s values(GCtime) as GCtime by host