Another path (which I took because it was easier for me) is to use the Weblogic Scripting Tool (WLST) as a scripted input to Splunk. I run a shell script which calls java weblogic.WLST and a script name..
I run the script every 5 minutes into an index, and can do reports on heap free, threads used, data source statistics. If anyone is interested in the view I can provide that as well..
Example Script:
import time
date = time.strftime("%d-%m-%Y %H:%M:%S")
### Connect to managed server
connect ('<adminaccount>','<password>','t3://<servername>:<serverport>')
serverRuntime();
### Get HEAP Stats
cd ('JVMRuntime/<managedservername>')
heapSizeMax = cmo.getHeapSizeMax()
heapFreeCurrent = cmo.getHeapFreeCurrent()
heapFreePercent = cmo.getHeapFreePercent()
TotalNumberOfThreads=cmo.getTotalNumberOfThreads()
### Print the results
print date,',Host=<managedservername>',',HeapSizeMax=',heapSizeMax,',HeapSizeCurrent=',heapFreeCurrent,',TotalNumberOfThreads=',TotalNumberOfThreads
### Get Database Settings. Will need to customize with your DataSourceNames
cd('../../JDBCServiceRuntime/<managedservername>/JDBCDataSourceRuntimeMBeans/<datasourcename>');
ActiveConnectionsCurrentCount=cmo.getActiveConnectionsCurrentCount()
ActiveConnectionsHighCount=cmo.getActiveConnectionsHighCount()
ConnectionDelayTime=cmo.getConnectionDelayTime()
FailuresToReconnectCount=cmo.getFailuresToReconnectCount()
LeakedConnectionCount=cmo.getLeakedConnectionCount()
WaitingForConnectionCurrentCount=cmo.getWaitingForConnectionCurrentCount()
WaitingForConnectionHighCount=cmo.getWaitingForConnectionHighCount()
###Print the results
print date,',Host=<managedservername>',',datasource=<datasourcename>',',ActiveConnectionsCurrentCount=',ActiveConnectionsCurrentCount
,',ActiveConnectionsHighCount=',ActiveConnectionsHighCount,',ConnectionDelayTime=',ConnectionDelayTime,',FailuresToReconnec
tCount=',FailuresToReconnectCount,',LeakedConnectionCount=',LeakedConnectionCount,',WaitingForConnectionCurrentCount=',Wait
ingForConnectionCurrentCount,',WaitingForConnectionHighCount=',WaitingForConnectionHighCount
### Disconnect
disconnect()
... View more