Thanks for looking into this. After looking at the JMX plugin code, it doesn't seem like the code does anything with "codec => json" setting. On a side note the output stdout code does. I disabled the Grok filter. and the output looks like this:
{
"@version" => "1",
"@timestamp" => "2015-09-18T16:32:48.191Z",
"host" => "usbgc-lab-vd1.ny.cantor.com",
"path" => "c:/LogStash/jmxconf/",
"type" => "jmx",
"metric_path" => "usbgc-lab-vd1.ny.cantor.com_9119.Memory.Verbose_bo
ol",
"metric_value_number" => 0
}
{
"@version" => "1",
"@timestamp" => "2015-09-18T16:32:48.228Z",
"host" => "usbgc-lab-vd1.ny.cantor.com",
"path" => "c:/LogStash/jmxconf/",
"type" => "jmx",
"metric_path" => "usbgc-lab-vd1.ny.cantor.com_9119.Memory.HeapMemory
Usage.committed",
"metric_value_number" => 192937984
}
{
"@version" => "1",
"@timestamp" => "2015-09-18T16:32:48.243Z",
"host" => "usbgc-lab-vd1.ny.cantor.com",
"path" => "c:/LogStash/jmxconf/",
"type" => "jmx",
"metric_path" => "usbgc-lab-vd1.ny.cantor.com_9119.Memory.HeapMemory
Usage.init",
"metric_value_number" => 162068032
}
{
"@version" => "1",
"@timestamp" => "2015-09-18T16:32:48.251Z",
"host" => "usbgc-lab-vd1.ny.cantor.com",
"path" => "c:/LogStash/jmxconf/",
"type" => "jmx",
"metric_path" => "usbgc-lab-vd1.ny.cantor.com_9119.Memory.HeapMemory
Usage.max",
"metric_value_number" => 7635730432
}
{
"@version" => "1",
"@timestamp" => "2015-09-18T16:32:48.258Z",
"host" => "usbgc-lab-vd1.ny.cantor.com",
"path" => "c:/LogStash/jmxconf/",
"type" => "jmx",
"metric_path" => "usbgc-lab-vd1.ny.cantor.com_9119.Memory.HeapMemory
Usage.used",
"metric_value_number" => 141016808
}
{
"@version" => "1",
"@timestamp" => "2015-09-18T16:32:48.273Z",
"host" => "usbgc-lab-vd1.ny.cantor.com",
"path" => "c:/LogStash/jmxconf/",
"type" => "jmx",
"metric_path" => "usbgc-lab-vd1.ny.cantor.com_9119.Memory.NonHeapMem
oryUsage.committed",
"metric_value_number" => 109641728
}
{
"@version" => "1",
"@timestamp" => "2015-09-18T16:32:48.280Z",
"host" => "usbgc-lab-vd1.ny.cantor.com",
"path" => "c:/LogStash/jmxconf/",
"type" => "jmx",
"metric_path" => "usbgc-lab-vd1.ny.cantor.com_9119.Memory.NonHeapMem
oryUsage.init",
"metric_value_number" => 24576000
}
{
"@version" => "1",
"@timestamp" => "2015-09-18T16:32:48.287Z",
"host" => "usbgc-lab-vd1.ny.cantor.com",
"path" => "c:/LogStash/jmxconf/",
"type" => "jmx",
"metric_path" => "usbgc-lab-vd1.ny.cantor.com_9119.Memory.NonHeapMem
oryUsage.max",
"metric_value_number" => 587202560
}
{
"@version" => "1",
"@timestamp" => "2015-09-18T16:32:48.319Z",
"host" => "usbgc-lab-vd1.ny.cantor.com",
"path" => "c:/LogStash/jmxconf/",
"type" => "jmx",
"metric_path" => "usbgc-lab-vd1.ny.cantor.com_9119.Memory.NonHeapMem
oryUsage.used",
"metric_value_number" => 60404040
}
{
"@version" => "1",
"@timestamp" => "2015-09-18T16:32:48.323Z",
"host" => "usbgc-lab-vd1.ny.cantor.com",
"path" => "c:/LogStash/jmxconf/",
"type" => "jmx",
"metric_path" => "usbgc-lab-vd1.ny.cantor.com_9119.Memory.ObjectPend
ingFinalizationCount",
"metric_value_number" => 0
}
{
"@version" => "1",
"@timestamp" => "2015-09-18T16:32:48.335Z",
"host" => "usbgc-lab-vd1.ny.cantor.com",
"path" => "c:/LogStash/jmxconf/",
"type" => "jmx",
"metric_path" => "usbgc-lab-vd1.ny.cantor.com_9119.Memory.ObjectName
",
"metric_value_string" => "java.lang:type=Memory"
}