I am completely new to ELK and currently learning to configure it for different logs,
ELK version 7.0
while parsing the GClogs to logstash through fileBeat I see the pattrent match fails( please note same pattern works fine with grok debugger)
sample GC log:-
You need to edit your post and format it so that it is readable. Select the configuration and click on </> in the toolbar above the edit pane. Check it is readable in the preview pane on the right. It is there for that reason.
You have an extra % at the start of the line which should probably be ^
You do not need to escape K or > with backslash.
That said, I think you should capture the K along with the number, because your code is going to break when it sees B or M or G there. If you capture 9728K using something like (?<someSize>[0-9]+[BKMGT]).
You then need to convert that to a number. I once did that will a mutate filter (replacing K with 000 etc -- good enough for what I needed right then). I thought I recently saw a filter that could do that, but I cannot find it now. It may have been an elasticsearch mapper, but I cannot find that either. This thread has some suggestions around that, including ruby code.
Thanks much ..was able to parse the GC logs and can split the details as required ,please find the below sample output of "Discover" window
Time TYPE gc_type gc_cause totalHeap UsedAafterGC before_gc real sys YoungGenafter_gc youngUsedAftergc youngGenbeforeGC
May 20, 2019 @ 15:02:05.701 PSYoungGen GC Allocation Failure 28,160 10,913 15,577 0 0 9,216 1,238 5,910
now I need to plot a graph for youngen and oldgen Heap pattern along with GC cause and GC duration ...could you please let me know how i can do tht ( i tried with line and Data table but not able figure out
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.