diff --git a/public/pages/CreateDetector/components/ConfigureFieldMapping/containers/ConfigureFieldMapping.tsx b/public/pages/CreateDetector/components/ConfigureFieldMapping/containers/ConfigureFieldMapping.tsx index 16a9e178b..ec7b1638f 100644 --- a/public/pages/CreateDetector/components/ConfigureFieldMapping/containers/ConfigureFieldMapping.tsx +++ b/public/pages/CreateDetector/components/ConfigureFieldMapping/containers/ConfigureFieldMapping.tsx @@ -148,6 +148,10 @@ export default class ConfigureFieldMapping extends Component< Object.keys(mappingsData.properties).forEach((ruleFieldName) => { mappedRuleFields.unshift(ruleFieldName); + if (mappingsData.properties[ruleFieldName].path) { + logFields.add(mappingsData.properties[ruleFieldName].path); + } + // Need this check to avoid adding undefined value // When user removes existing mapping for default mapped values, the mapping will be undefined if (existingMappings[ruleFieldName]) {