diff --git a/web/src/composables/useLogs/useSearchQuery.ts b/web/src/composables/useLogs/useSearchQuery.ts
index b29ac45ed8..1cf2f28ab2 100644
--- a/web/src/composables/useLogs/useSearchQuery.ts
+++ b/web/src/composables/useLogs/useSearchQuery.ts
@@ -42,7 +42,7 @@ export const useSearchQuery = () => {
fnUnparsedSQL,
} = logsUtils();
- const { searchObj, notificationMsg, initialQueryPayload } = searchState();
+ const { searchObj, notificationMsg, initialQueryPayload, searchAggData } = searchState();
const getQueryReq = (isPagination: boolean): SearchRequestPayload | null => {
if (!isPagination) {
@@ -53,6 +53,10 @@ export const useSearchQuery = () => {
searchObj.meta.searchApplied = true;
searchObj.data.functionError = "";
+
+ searchAggData.total = 0;
+ searchAggData.hasAggregation = false;
+
if (
!searchObj.data.stream.streamLists?.length ||
searchObj.data.stream.selectedStream.length == 0
diff --git a/web/src/plugins/logs/components/FieldExpansion.vue b/web/src/plugins/logs/components/FieldExpansion.vue
index 5fed807cc2..296204becf 100644
--- a/web/src/plugins/logs/components/FieldExpansion.vue
+++ b/web/src/plugins/logs/components/FieldExpansion.vue
@@ -37,8 +37,8 @@ along with this program. If not, see