Skip to content

Commit

Permalink
Update opensearch plugin config
Browse files Browse the repository at this point in the history
  • Loading branch information
dbason committed Nov 2, 2022
1 parent 5936702 commit 18110a0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
11 changes: 11 additions & 0 deletions ci.cue
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,17 @@ dagger.#Plan & {
]
}
},
docker.#Run & {
command: {
name: "opensearch-plugin"
args: [
"-s",
"install",
"-b",
"https://github.com/tybalex/opni-preprocessing-plugin/releases/download/v\(client.env.PLUGIN_VERSION)/opnijsondetector.zip",
]
}
},
]
}
push: docker.#Push & {
Expand Down
8 changes: 4 additions & 4 deletions pkg/resources/multiclusterrolebinding/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,10 @@ var (
Description: "Opni preprocessing ingest pipeline",
Processors: []osapiext.Processor{
{
OpniPreProcessor: &osapiext.OpniPreProcessor{
Field: "log",
TargetField: "masked_log",
},
OpniLoggingProcessor: &osapiext.OpniProcessorConfig{},
},
{
OpniPreProcessor: &osapiext.OpniProcessorConfig{},
},
},
}
Expand Down
7 changes: 3 additions & 4 deletions pkg/util/opensearch/types/ingest_pipeline_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ type IngestPipeline struct {
}

type Processor struct {
OpniPreProcessor *OpniPreProcessor `json:"opnipre,omitempty"`
OpniLoggingProcessor *OpniProcessorConfig `json:"opni-logging-processor,omitempty"`
OpniPreProcessor *OpniProcessorConfig `json:"opnipre,omitempty"`
}

type OpniPreProcessor struct {
Field string `json:"field,omitempty"`
TargetField string `json:"target_field,omitempty"`
type OpniProcessorConfig struct {
}

0 comments on commit 18110a0

Please sign in to comment.