Skip to content

Commit

Permalink
Remove keep_state flag
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-gr committed Oct 27, 2020
1 parent f32ba51 commit 07db56f
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 31 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Adding support for FIPS in s3 input {pull}21446[21446]
- Add SSL option to checkpoint module {pull}19560[19560]
- Add max_number_of_messages config into s3 input. {pull}21993[21993]
- Add optional settings to Okta to preserve state between restarts {pull}22091[22091]
- Update Okta documentation for new stateful restarts. {pull}22091[22091]

*Heartbeat*

Expand Down
13 changes: 1 addition & 12 deletions filebeat/docs/modules/okta.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -93,20 +93,9 @@ information.
supported_protocols: [TLSv1.2]
----

*`var.keep_state`*::

By default, this module does not persist the timestamp of the last read event. When you restart the module will read events from the beginning of the
log. To minimize duplicates documents the module uses the event's Okta UUID
value as the Elasticsearch `_id`. To use the last read event timestamp between restarts, `var.keep_state` can be set to `true`. It defaults to `false`.
+
[source,yaml]
----
var.keep_state: true
----

*`var.initial_interval`*::

When `var.keep_state` is set to `true`, an initial interval can be defined. The first time the module starts, will fetch events from the current moment minus the initial interval value. It defaults to `24h`.
An initial interval can be defined. The first time the module starts, will fetch events from the current moment minus the initial interval value. Following restarts will fetch events starting from the last event read. It defaults to `24h`.
+
[source,yaml]
----
Expand Down
13 changes: 1 addition & 12 deletions x-pack/filebeat/module/okta/_meta/docs.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -88,20 +88,9 @@ information.
supported_protocols: [TLSv1.2]
----

*`var.keep_state`*::

By default, this module does not persist the timestamp of the last read event. When you restart the module will read events from the beginning of the
log. To minimize duplicates documents the module uses the event's Okta UUID
value as the Elasticsearch `_id`. To use the last read event timestamp between restarts, `var.keep_state` can be set to `true`. It defaults to `false`.
+
[source,yaml]
----
var.keep_state: true
----

*`var.initial_interval`*::

When `var.keep_state` is set to `true`, an initial interval can be defined. The first time the module starts, will fetch events from the current moment minus the initial interval value. It defaults to `24h`.
An initial interval can be defined. The first time the module starts, will fetch events from the current moment minus the initial interval value. Following restarts will fetch events starting from the last event read. It defaults to `24h`.
+
[source,yaml]
----
Expand Down
4 changes: 0 additions & 4 deletions x-pack/filebeat/module/okta/system/config/input.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,9 @@ ssl: {{ .ssl | tojson }}
url: {{ .url }}
{{ end }}

{{ if .keep_state }}
date_cursor.field: published
date_cursor.url_field: since
{{ if .initial_interval }}
date_cursor.initial_interval: {{ .initial_interval }}
{{ end }}
{{ end }}

{{ else if eq .input "file" }}

Expand Down
2 changes: 0 additions & 2 deletions x-pack/filebeat/module/okta/system/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ var:
- name: tags
default: [forwarded]
- name: url
- name: keep_state
default: false
- name: initial_interval
default: 24h

Expand Down

0 comments on commit 07db56f

Please sign in to comment.