diff --git a/web/package-lock.json b/web/package-lock.json index 138721501f..2fbf19e4fa 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -16,7 +16,7 @@ "@segment/analytics-next": "^1.45.0", "@sentry/tracing": "^7.17.4", "@sentry/vue": "^7.17.4", - "aws-amplify": "*", + "aws-amplify": "latest", "js-cookie": "^3.0.1", "jwt-decode": "^3.1.2", "lodash-es": "^4.17.21", diff --git a/web/package.json b/web/package.json index 3f8c90f5d5..83d83af7c8 100644 --- a/web/package.json +++ b/web/package.json @@ -1,6 +1,6 @@ { - "name": "zinc-oxide-web", - "version": "0.0.0", + "name": "zinc-observe-web", + "version": "0.1.0", "license": "Apache-2.0", "private": true, "scripts": { @@ -24,7 +24,7 @@ "@segment/analytics-next": "^1.45.0", "@sentry/tracing": "^7.17.4", "@sentry/vue": "^7.17.4", - "aws-amplify": "latest", + "aws-amplify": "4.3.43", "js-cookie": "^3.0.1", "jwt-decode": "^3.1.2", "lodash-es": "^4.17.21", diff --git a/web/src/components/ingestion/Curl.vue b/web/src/components/ingestion/Curl.vue index 959ba47700..621a7637e2 100644 --- a/web/src/components/ingestion/Curl.vue +++ b/web/src/components/ingestion/Curl.vue @@ -29,10 +29,8 @@
- curl -u {{ currUserEmail }}:{{ store.state.organizationPasscode }} -k {{
- config.zincENLIngestion
- }}/api/{{ currOrgIdentifier }}/default/_json -d [JSON-DATA]
+curl -u {{ currUserEmail }}:{{ store.state.organizationPasscode }} -k {{ endpoint.url }}/api/{{ currOrgIdentifier }}/default/_json -d [JSON-DATA]
+
@@ -53,11 +51,22 @@ export default defineComponent({
},
setup() {
const store = useStore();
+ const endpoint = ref("");
+
+ const url = new URL(store.state.API_ENDPOINT);
+ endpoint.value = {
+ url: store.state.API_ENDPOINT,
+ host: url.hostname,
+ port: url.port,
+ protocol: url.protocol.replace(":", ""),
+ tls: url.protocol === "https:" ? "On" : "Off",
+ };
const content = ref(null);
return {
store,
config,
+ endpoint,
content,
};
},
diff --git a/web/src/components/ingestion/FluentBit.vue b/web/src/components/ingestion/FluentBit.vue
index a5abb67b3c..6a084051f2 100644
--- a/web/src/components/ingestion/FluentBit.vue
+++ b/web/src/components/ingestion/FluentBit.vue
@@ -33,15 +33,14 @@
Name http
Match *
Path /api/{{ currOrgIdentifier }}/default/_json
- Host {{ config.zincENLIngestion }}
- index default
- Port 443
- tls On
- Suppress_Type_Name On
- Generate_ID On
+ Host {{ endpoint.host }}
+ Port {{ endpoint.port }}
+ tls {{ endpoint.tls }}
+ Format json
+ Json_date_key _timestamp
+ Json_date_format iso8601
HTTP_User {{ currUserEmail }}
- HTTP_Passwd {{ store.state.organizationPasscode }}
+ HTTP_Passwd {{ store.state.organizationPasscode }}
@@ -62,11 +61,22 @@ export default defineComponent({
},
setup() {
const store = useStore();
+ const endpoint = ref("");
+
+ const url = new URL(store.state.API_ENDPOINT);
+ endpoint.value = {
+ url: store.state.API_ENDPOINT,
+ host: url.hostname,
+ port: url.port,
+ protocol: url.protocol.replace(":", ""),
+ tls: url.protocol === "https:" ? "On" : "Off",
+ };
const fluentbitContent = ref(null);
return {
store,
config,
+ endpoint,
fluentbitContent,
};
},
diff --git a/web/src/components/ingestion/Fluentd.vue b/web/src/components/ingestion/Fluentd.vue
index ea914cf23f..8a04dc8576 100644
--- a/web/src/components/ingestion/Fluentd.vue
+++ b/web/src/components/ingestion/Fluentd.vue
@@ -36,19 +36,16 @@
</source>
<match **>
- @type copy
- <store>
- @type http
- host {{ config.zincENLIngestion }}
- port 443
- scheme https
- path /api/{{ currOrgIdentifier }}/default/_json
- user {{ currUserEmail }}
+ @type http
+ endpoint {{ endpoint.url }}/api/{{ currOrgIdentifier }}/default/_json
+ content_type json
+ json_array true
+ <auth>
+ method basic
+ username {{ currUserEmail }}
password {{ store.state.organizationPasscode }}
- index_name default
- </store>
-</match>
+ </auth>
+</match>
@@ -69,11 +66,22 @@ export default defineComponent({
},
setup() {
const store = useStore();
+ const endpoint = ref("");
+
+ const url = new URL(store.state.API_ENDPOINT);
+ endpoint.value = {
+ url: store.state.API_ENDPOINT,
+ host: url.hostname,
+ port: url.port,
+ protocol: url.protocol.replace(":", ""),
+ tls: url.protocol === "https:" ? "On" : "Off",
+ };
const fluentdContent = ref(null);
return {
store,
config,
+ endpoint,
fluentdContent,
};
},
diff --git a/web/src/components/ingestion/Vector.vue b/web/src/components/ingestion/Vector.vue
index a54567ba44..c809c14d47 100644
--- a/web/src/components/ingestion/Vector.vue
+++ b/web/src/components/ingestion/Vector.vue
@@ -32,15 +32,14 @@
[sinks.zinc]
type = "http"
inputs = [ source or transform id ]
-endpoint = "{{ config.zincENLEndPoint }}/api/{{ currOrgIdentifier }}/"
-mode = "bulk"
+endpoint = "{{ endpoint.url }}/api/{{ currOrgIdentifier }}/default/_json"
auth.strategy = "basic"
auth.user = "{{ currUserEmail }}"
auth.password = "{{ store.state.organizationPasscode }}"
-bulk.index = "default"
compression = "none"
-healthcheck.enabled = false
+encoding.codec = "json"
+encoding.timestamp_format = "rfc3339"
+healthcheck.enabled = false
@@ -61,11 +60,22 @@ export default defineComponent({
},
setup() {
const store = useStore();
+ const endpoint = ref("");
+
+ const url = new URL(store.state.API_ENDPOINT);
+ endpoint.value = {
+ url: store.state.API_ENDPOINT,
+ host: url.hostname,
+ port: url.port,
+ protocol: url.protocol.replace(":", ""),
+ tls: url.protocol === "https:" ? "On" : "Off",
+ };
const vectorContent = ref(null);
return {
store,
config,
+ endpoint,
vectorContent,
};
},
diff --git a/web/src/layouts/MainLayout.vue b/web/src/layouts/MainLayout.vue
index a578f4e5be..d6de424c7a 100644
--- a/web/src/layouts/MainLayout.vue
+++ b/web/src/layouts/MainLayout.vue
@@ -38,14 +38,14 @@