Skip to content

Commit e36a6b1

Browse files
Fixes source on event_id metadata (#123)
1 parent dae6d0f commit e36a6b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/teragrep/k8s_01/K8SConsumer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public class K8SConsumer implements Consumer<FileRecord> {
6363
private final SDElement sdAdditionalMetadata;
6464
private final SDParam sdRealHostname;
6565
private final SDParam sdSourceModule = new SDParam("source_module", "k8s_01");
66-
private final SDParam sdSource = new SDParam("source", "source");
66+
private final SDParam sdIdSource = new SDParam("id_source", "source");
6767
K8SConsumer(
6868
AppConfig appConfig,
6969
KubernetesCachingAPIClient cacheClient,
@@ -325,7 +325,7 @@ public void accept(FileRecord record) {
325325
sdEventId.addSDParam(sdRealHostname);
326326
sdEventId.addSDParam("uuid", uuid.toString());
327327
sdEventId.addSDParam("unixtime", String.valueOf(Instant.now().getEpochSecond()));
328-
sdEventId.addSDParam(sdSource);
328+
sdEventId.addSDParam(sdIdSource);
329329

330330
LOGGER.trace(
331331
"[{}] Kubernetes metadata: {}",

0 commit comments

Comments
 (0)