File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ use tracing::{debug, error};
28
28
use crate :: {
29
29
connectors:: common:: processor:: Processor ,
30
30
event:: {
31
- format:: { json, EventFormat , LogSource } ,
31
+ format:: { json, EventFormat , LogSourceEntry } ,
32
32
Event as ParseableEvent ,
33
33
} ,
34
34
parseable:: PARSEABLE ,
@@ -49,9 +49,14 @@ impl ParseableSinkProcessor {
49
49
. first ( )
50
50
. map ( |r| r. topic . as_str ( ) )
51
51
. unwrap_or_default ( ) ;
52
+ let log_source_entry = LogSourceEntry :: default ( ) ;
52
53
53
54
PARSEABLE
54
- . create_stream_if_not_exists ( stream_name, StreamType :: UserDefined , LogSource :: Json )
55
+ . create_stream_if_not_exists (
56
+ stream_name,
57
+ StreamType :: UserDefined ,
58
+ vec ! [ log_source_entry] ,
59
+ )
55
60
. await ?;
56
61
57
62
let stream = PARSEABLE . get_stream ( stream_name) ?;
You can’t perform that action at this time.
0 commit comments