Added GetManagedObjects based elog data collection

GetManagedObjects based elog data collection will reduce
to one d-bus call, for entire elog properties dump.

Change-Id: I2d2a5922418e0c26b5cf93d94203747121910a50
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
diff --git a/tools/dreport.d/plugins.d/elogall b/tools/dreport.d/plugins.d/elogall
index fbbe345..0d500f6 100644
--- a/tools/dreport.d/plugins.d/elogall
+++ b/tools/dreport.d/plugins.d/elogall
@@ -18,13 +18,11 @@
     exit 0
 fi
 
-command="busctl --list --no-pager tree \
-                 xyz.openbmc_project.Logging | grep \
-                 '/xyz/openbmc_project/logging/entry/' \
-                 | xargs -I {} busctl --verbose --no-pager \
-                 call xyz.openbmc_project.Logging {} \
-                 org.freedesktop.DBus.Properties GetAll s \
-                 xyz.openbmc_project.Logging.Entry"
+command="busctl call --verbose --no-pager \
+                xyz.openbmc_project.Logging \
+                /xyz/openbmc_project/logging \
+                org.freedesktop.DBus.ObjectManager \
+                GetManagedObjects"
 
 file_name="elogall.log"