Hi Team,
Can anyone help me in parsing the below and store the same in elastic Search. I am new to Logstash.
Wanted to store the metric in Elastic search.
{
"collectionTime": {
"timeStamp": "2020-08-04T17:27:16Z",
"epoch": 1596562036
},
"points": [{
"objectType": "queue",
"tags": {
"description": "-",
"platform": "UNIX",
"qmgr": "ABC",
"queue": "XYZ",
"usage": "NORMAL"
},
"metrics": {
"averageQueueTimeSeconds": 0,
"destructiveMqgetNonPersistentBytes": 0,
"destructiveMqgetNonPersistentMessageCount": 0,
"destructiveMqgetPersistentBytes": 0,
"destructiveMqgetPersistentMessageCount": 0,
"expiredMessages": 0,
"lockContentionPercentage": 0,
"mqcloseCount": 0,
"mqgetBrowseNonPersistentBytes": 0,
"mqgetBrowseNonPersistentMessageCount": 0,
"mqgetBrowsePersistentBytes": 0,
"mqgetBrowsePersistentMessageCount": 0,
"mqgetBytes": 0,
"mqgetCount": 0,
"mqinqCount": 0,
"mqopenCount": 0,
"mqput1NonPersistentMessageCount": 0,
"mqput1PersistentMessageCount": 0,
"mqputBytes": 0,
"mqputMqput1Count": 0,
"mqputNonPersistentMessageCount": 0,
"mqputPersistentMessageCount": 0,
"mqsetCount": 0,
"nonPersistentBytes": 0,
"persistentBytes": 0,
"queueAvoidedPercentage": 0,
"queueAvoidedPutsPercentage": 0,
"queueDepth": 0,
"queuePurgedCount": 0
}
},
{
"objectType": "queueManager",
"tags": {
"platform": "UNIX",
"qmgr": "AZAP01NP"
},
"metrics": {
"alterDurableSubscriptionCount": 0,
"commitCount": 0,
"concurrentConnectionsHighWaterMark": 26,
"cpuLoadFifteenMinuteAveragePercentage": 0.13,
"cpuLoadFiveMinuteAveragePercentage": 0.12,
"cpuLoadOneMinuteAveragePercentage": 0.22,
"createDurableSubscriptionCount": 0,
"createNonDurableSubscriptionCount": 10,
"deleteDurableSubscriptionCount": 0,
"deleteNonDurableSubscriptionCount": 0,
"durableSubscriberHighWaterMark": 2,
"durableSubscriberLowWaterMark": 0,
"expiredMessageCount": 0,
"failedBrowseCount": 0,
"failedCreateAlterResumeSubscriptionCount": 0,
"failedMqcbCount": 0,
"failedMqcloseCount": 0,
"failedMqconnMqconnxCount": 0,
"failedMqgetCount": 16,
"failedMqinqCount": 0,
"failedMqopenCount": 0,
"failedMqput1Count": 0,
"failedMqputCount": 0,
"failedMqsetCount": 0,
"failedMqsubrqCount": 0,
"failedTopicMqputMqput1Count": 0,
"gotNonPersistentMessagesBytes": 22520,
"gotPersistentMessagesBytes": 0,
"intervalDestructiveGetTotalBytes": 22520,
"intervalDestructiveGetTotalCount": 77,
"intervalMqputMqput1TotalBytes": 41932,
"intervalMqputMqput1TotalCount": 120,
"intervalTopicPutTotal": 36472,
"logCurrentPrimarySpaceInUsePercentage": 4.03,
"logFileSystemInUseBytes": 19145949184,
"logFileSystemMaxBytes": 109963223498752,
"logInUseBytes": 5368627200,
"logLogicalWrittenBytes": 0,
"logMaxBytes": 8052940800,
"logPhysicalWrittenBytes": 0,
"logWorkloadPrimarySpaceUtilizationPercentage": 4.03,
"logWriteLatencySeconds": 0.001481,
"logWriteSizeBytes": 6246,
"mqErrorsFileSystemFreeSpacePercentage": 55.73,
"mqErrorsFileSystemInUseBytes": 3796893696,
"mqFdcFileCount": 628,
"mqTraceFileSystemFreeSpacePercentage": 55.73,
"mqTraceFileSystemInUseBytes": 3796893696,
"mqcbCount": 3,
"mqcloseCount": 105,
"mqconnMqconnxCount": 4,
"mqctlCount": 2,
"mqdiscCount": 2,
"mqinqCount": 33,
"mqopenCount": 108,
"mqsetCount": 0,
"mqstatCount": 0,
"mqsubrqCount": 0,
"nonDurableSubscriberHighWaterMark": 25,
"nonDurableSubscriberLowWaterMark": 0,
"nonPersistentMessageBrowseBytes": 0,
"nonPersistentMessageBrowseCount": 0,
"nonPersistentMessageDestructiveGetCount": 77,
"nonPersistentMessageMqput1Count": 0,
"nonPersistentMessageMqputCount": 120,
"nonPersistentTopicMqputMqput1Count": 106,
"persistentMessageBrowseBytes": 0,
"persistentMessageBrowseCount": 0,
"persistentMessageDestructiveGetCount": 0,
"persistentMessageMqput1Count": 0,
"persistentMessageMqputCount": 0,
"persistentTopicMqputMqput1Count": 0,
"publishedToSubscribersBytes": 28408,
"publishedToSubscribersMessageCount": 88,
"purgedQueueCount": 0,
"putNonPersistentMessagesBytes": 41932,
"putPersistentMessagesBytes": 0,
"queueManagerFileSystemFreeSpacePercentage": 99.99,
"queueManagerFileSystemInUseBytes": 2312110080,
"ramFreePercentage": 79.01,
"ramTotalBytes": 7125073920,
"ramTotalEstimateForQueueManagerBytes": 162529280,
"resumeDurableSubscriptionCount": 0,
"rollbackCount": 0,
"subscriptionDeleteFailureCount": 0,
"systemCpuTimeEstimateForQueueManagerPercentage": 0.18,
"systemCpuTimePercentage": 0.35,
"topicMqputMqput1IntervalTotal": 106,
"userCpuTimeEstimateForQueueManagerPercentage": 0.1,
"userCpuTimePercentage": 0.5
}
}
]
}