diff --git a/x-pack/plugins/infra/public/containers/with_source/with_source.tsx b/x-pack/plugins/infra/public/containers/with_source/with_source.tsx index 8254b5f784d4f..8b3437390d23d 100644 --- a/x-pack/plugins/infra/public/containers/with_source/with_source.tsx +++ b/x-pack/plugins/infra/public/containers/with_source/with_source.tsx @@ -96,7 +96,21 @@ const createContainerProps = memoizeLast((sourceId: string, apolloClient: Apollo create: (sourceConfiguration: CreateSourceInput) => ({ setState }) => { const variables = { sourceId, - sourceConfiguration, + sourceConfiguration: { + name: sourceConfiguration.name, + description: sourceConfiguration.description, + metricAlias: sourceConfiguration.metricAlias, + logAlias: sourceConfiguration.logAlias, + fields: sourceConfiguration.fields + ? { + container: sourceConfiguration.fields.container, + host: sourceConfiguration.fields.host, + pod: sourceConfiguration.fields.pod, + tiebreaker: sourceConfiguration.fields.tiebreaker, + timestamp: sourceConfiguration.fields.timestamp, + } + : undefined, + }, }; setState(actions.startOperation({ name: 'create', parameters: variables }));