From e586e22007d58b669123cb719a5bfd32e29fd384 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 19 Apr 2018 17:41:43 -0700 Subject: [PATCH] modules/console: Add event cmd idx argument. --- modules/console.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/console.cc b/modules/console.cc index 36a3d57e1..039490aea 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -1600,6 +1600,10 @@ console_cmd__event(opt &out, const string_view &line) case hash("raw"): out << json::object{buf} << std::endl; return true; + + case hash("idx"): + out << m::event::fetch::index(event) << std::endl; + return true; } out << pretty(event) << std::endl;