diff --git a/src/App.vue b/src/App.vue index 8159000..d510268 100644 --- a/src/App.vue +++ b/src/App.vue @@ -157,4 +157,10 @@ body { .menoutext { font-family: "Lato", sans-serif !important; } + +thead { + background-color: #f8f9fa; + position: sticky; + top: 0; +} diff --git a/src/components/doclive/AdhocView.vue b/src/components/doclive/AdhocView.vue index 69887d7..d504bfc 100644 --- a/src/components/doclive/AdhocView.vue +++ b/src/components/doclive/AdhocView.vue @@ -100,7 +100,7 @@ > -
+
-

Search

+
- - - -
-
- +
+
+ +
- - + + +
+ +
@@ -36,7 +61,7 @@ -
+
@@ -70,49 +95,34 @@
-
-
-
- - -
- -
- - -
- -
+ +
+
+ +
+
+ Hot_log RAW ALL +
@@ -131,17 +141,6 @@ Clear
- -
- -
@@ -204,7 +203,8 @@ >
- + +

ON-event logs for MongoDB (RAW)

+
+

ON-event logs (RAW)

+
+ +
+
+ + +
+
@@ -288,16 +311,17 @@ export default { fields2: [ { name: "t", - title: "t", + title: "Timestamp", visible: true, }, { name: "s", - title: "s", + title: "Severity", visible: true, }, { name: "c", + title: "Components", titleClass: "center aligned", }, { @@ -307,21 +331,39 @@ export default { { name: "ctx", visible: true, - title: "ctx", + title: "Context", }, { name: "msg", - title: "msg", + title: "Message", }, { name: "attr", - title: "attr", + title: "Attributes", }, // 'timestamp', // 'type', // 'process_id', // 'app_name', ], + fields3: [ + { + name: "_id", + title: "ID", + }, + { + name: "container_name", + title: "Container Name", + }, + { + name: "source", + title: "Source", + }, + { + name: "log", + title: "Log", + }, + ], log_path: [], log_path_lenght: [], log_path_lenghtstatus: [], @@ -349,6 +391,10 @@ export default { logdata: [], mongodata: [], localData: [], + rawdata: [], + mongoraw: false, + allraw: false, + raw: false, }; }, methods: { @@ -356,9 +402,12 @@ export default { if (param == 1) { var container = this.$el.querySelector("#applogs"); container.scrollTop = container.scrollHeight; - } else { + } else if (param == 2) { var container = this.$el.querySelector("#mongologs"); container.scrollTop = container.scrollHeight; + } else { + var container = this.$el.querySelector("#rawlogs"); + container.scrollTOp = container.scrollHeight; } }, async getuser(token) { @@ -403,8 +452,16 @@ export default { //call to start on event logs this.onEvent = true; }, + mongorawf() { + this.mongoraw = true; + }, + allrawf() { + this.raw = true; + }, Clearlog() { this.onEvent = false; + this.mongoraw = false; + this.raw = false; }, logview(item) { //console.log('path ' + JSON.stringify(item)) @@ -600,7 +657,7 @@ export default { created() { //var logintoken = new URL(location.href).searchParams.get("token"); var logintoken = new URL( - "https://api-client.swarmlab.io:8088/?token=95bbe80eeae557be3e4e9fa25109bf2187f2c313" + "https://api-client.swarmlab.io:8088/?token=06227b41168224d853a1863d3195cff946f15217" ).searchParams.get("token"); this.logintoken = logintoken; // === We get the user + check for the token if exists @@ -859,6 +916,7 @@ export default { log: val, }); + this.rawdata = val; if (val.log.includes("app_name")) { var test = JSON.parse(val.log); @@ -894,6 +952,7 @@ export default { max-height: 400px; min-width: 100%; } + h2 { background-color: dimgray; padding: 10px; @@ -907,7 +966,7 @@ h2 { } .rowlog { display: flex; /* equal height of the children */ - min-height: 500px; + min-height: 600px; box-shadow: 3px 3px 10px 10px rgba(0, 0, 0, 0.281); margin-bottom: 40px; margin-top: 20px; @@ -916,4 +975,8 @@ h2 { .logs { width: 100%; } +button { + padding: 10px 10px 10px 10px; + margin: 10px 10px 10px 0px; +}