Skip to content

Commit 99764ff

Browse files
[cisco_ise] Generate processor tags and normalize error handler (#15532)
- Generate tags for processors missing tags - Normalize the pipeline error handler
1 parent f093f01 commit 99764ff

21 files changed

+1115
-33
lines changed

packages/cisco_ise/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "1.29.1"
3+
changes:
4+
- description: Generate processor tags and normalize error handler.
5+
type: enhancement
6+
link: https://github.com/elastic/integrations/pull/15532
27
- version: "1.29.0"
38
changes:
49
- description: Replace navigation with links panels.

packages/cisco_ise/data_stream/log/elasticsearch/ingest_pipeline/default.yml

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
description: Pipeline for Cisco ISE logs.
33
processors:
44
- set:
5+
tag: set_ecs_version_f5923549
56
field: ecs.version
67
value: '8.17.0'
78
- rename:
9+
tag: rename_message_to_event_original_56a77271
810
field: message
911
target_field: event.original
1012
ignore_missing: true
@@ -21,6 +23,7 @@ processors:
2123
TIMEONLYSTAMP_ISO8601: '%{YEAR}-%{MONTHNUM}-%{MONTHDAY}[T]%{HOUR}:?%{MINUTE}(?::?%{SECOND})?'
2224
on_failure:
2325
- append:
26+
tag: append_error_message_62c1fc01
2427
field: error.message
2528
value: '{{{ _ingest.on_failure_processor_tag }}}: {{{_ingest.on_failure_message}}}'
2629
- grok:
@@ -35,28 +38,34 @@ processors:
3538
NOTCOLON: '[^:]*?'
3639
on_failure:
3740
- append:
41+
tag: append_error_message_0a0a0ab3
3842
field: error.message
3943
value: '{{{ _ingest.on_failure_processor_tag }}}: {{{_ingest.on_failure_message}}}'
4044
- trim:
45+
tag: trim_message_c88e4c4f
4146
field: message
4247
ignore_failure: true
4348
- convert:
49+
tag: convert_host_hostname_to_host_ip_b25507a4
4450
if: ctx.host?.hostname != null && ctx.host.hostname != ''
4551
field: host.hostname
4652
target_field: host.ip
4753
type: ip
4854
ignore_failure: true
4955
ignore_missing: true
5056
- remove:
57+
tag: remove_host_hostname_57825f9d
5158
field: host.hostname
5259
if: ctx.host?.ip != null
5360
- append:
61+
tag: append_related_ip_3c5161f0
5462
field: related.ip
5563
value: '{{{host.ip}}}'
5664
if: ctx.host?.ip != null
5765
allow_duplicates: false
5866
ignore_failure: true
5967
- append:
68+
tag: append_related_hosts_e6462550
6069
field: related.hosts
6170
value: '{{{host.hostname}}}'
6271
if: ctx.host?.hostname != null
@@ -81,9 +90,11 @@ processors:
8190
- ISO8601
8291
on_failure:
8392
- remove:
93+
tag: remove__tmp_timestamp_e73f754f
8494
field: _tmp.timestamp
8595
ignore_missing: true
8696
- append:
97+
tag: append_error_message_8c829a08
8798
field: error.message
8899
value: '{{{ _ingest.on_failure_processor_tag }}}: {{{_ingest.on_failure_message}}}'
89100
- date:
@@ -96,66 +107,87 @@ processors:
96107
- ISO8601
97108
on_failure:
98109
- remove:
110+
tag: remove__tmp_timestamp_bfd835fe
99111
field: _tmp.timestamp
100112
ignore_missing: true
101113
- append:
114+
tag: append_error_message_5fa15a33
102115
field: error.message
103116
value: '{{{ _ingest.on_failure_processor_tag }}}: {{{_ingest.on_failure_message}}}'
104117
- pipeline:
118+
tag: pipeline_d30ae327
105119
name: '{{ IngestPipeline "pipeline_policy_diagnostics" }}'
106120
if: ctx.cisco_ise?.log?.category?.name == 'CISE_Policy_Diagnostics'
107121
- pipeline:
122+
tag: pipeline_3ce6a6a5
108123
name: '{{ IngestPipeline "pipeline_guest" }}'
109124
if: ctx.cisco_ise?.log?.category?.name == 'CISE_Guest'
110125
- pipeline:
126+
tag: pipeline_34ad8573
111127
name: '{{ IngestPipeline "pipeline_mydevices" }}'
112128
if: ctx.cisco_ise?.log?.category?.name == 'CISE_MyDevices'
113129
- pipeline:
130+
tag: pipeline_af633fa7
114131
name: '{{ IngestPipeline "pipeline_internal_operations_diagnostics" }}'
115132
if: ctx.cisco_ise?.log?.category?.name == 'CISE_Internal_Operations_Diagnostics'
116133
- pipeline:
134+
tag: pipeline_cac68b3f
117135
name: '{{ IngestPipeline "pipeline_threat_centric_nac" }}'
118136
if: ctx.cisco_ise?.log?.category?.name == 'CISE_Threat_Centric_NAC'
119137
- pipeline:
138+
tag: pipeline_be37a40d
120139
name: '{{ IngestPipeline "pipeline_posture_and_client_provisioning_audit" }}'
121140
if: ctx.cisco_ise?.log?.category?.name == 'CISE_Posture_and_Client_Provisioning_Audit'
122141
- pipeline:
142+
tag: pipeline_19bd2235
123143
name: '{{ IngestPipeline "pipeline_radius_accounting" }}'
124144
if: ctx.cisco_ise?.log?.category?.name == 'CISE_RADIUS_Accounting'
125145
- pipeline:
146+
tag: pipeline_b02e9ff1
126147
name: '{{ IngestPipeline "pipeline_failed_attempts" }}'
127148
if: ctx.cisco_ise?.log?.category?.name == 'CISE_Failed_Attempts'
128149
- pipeline:
150+
tag: pipeline_d4c7b7f3
129151
name: '{{ IngestPipeline "pipeline_passed_authentications" }}'
130152
if: ctx.cisco_ise?.log?.category?.name == 'CISE_Passed_Authentications'
131153
- pipeline:
154+
tag: pipeline_a00633e7
132155
name: '{{ IngestPipeline "pipeline_radius_diagnostics" }}'
133156
if: ctx.cisco_ise?.log?.category?.name == 'CISE_RADIUS_Diagnostics'
134157
- pipeline:
158+
tag: pipeline_0dbdd883
135159
name: '{{ IngestPipeline "pipeline_ad_connector" }}'
136160
if: ctx.cisco_ise?.log?.category?.name == 'CISE_AD_Connector'
137161
- pipeline:
162+
tag: pipeline_a47fa6a1
138163
name: '{{ IngestPipeline "pipeline_authentication_flow_diagnostics" }}'
139164
if: ctx.cisco_ise?.log?.category?.name == 'CISE_Authentication_Flow_Diagnostics'
140165
- pipeline:
166+
tag: pipeline_dcf1c2d7
141167
name: '{{ IngestPipeline "pipeline_administrative_and_operational_audit" }}'
142168
if: ctx.cisco_ise?.log?.category?.name == 'CISE_Administrative_and_Operational_Audit'
143169
- pipeline:
170+
tag: pipeline_bd039cd3
144171
name: '{{ IngestPipeline "pipeline_system_statistics" }}'
145172
if: ctx.cisco_ise?.log?.category?.name == 'CISE_System_Statistics'
146173
- pipeline:
174+
tag: pipeline_5538c187
147175
name: '{{ IngestPipeline "pipeline_tacacs_accounting" }}'
148176
if: ctx.cisco_ise?.log?.category?.name == 'CISE_TACACS_Accounting'
149177
- pipeline:
178+
tag: pipeline_1aeeac49
150179
name: '{{ IngestPipeline "pipeline_identity_stores_diagnostics" }}'
151180
if: ctx.cisco_ise?.log?.category?.name == "CISE_Identity_Stores_Diagnostics"
152181
- pipeline:
182+
tag: pipeline_e94dc8d5
153183
name: '{{ IngestPipeline "pipeline_alarm" }}'
154184
if: ctx.cisco_ise?.log?.category?.name == "CISE_Alarm"
155185
- pipeline:
186+
tag: pipeline_a51ce810
156187
name: '{{ IngestPipeline "pipeline_monitoring_data_purge_audit" }}'
157188
if: ctx.cisco_ise?.log?.category?.name?.toUpperCase() == 'CISE_MONITORING_DATA_PURGE_AUDIT'
158189
- set:
190+
tag: set_host_ip_1d72afcb
159191
field: host.ip
160192
value: ['{{{host.ip}}}']
161193
if: ctx.host?.ip instanceof String
@@ -172,50 +204,60 @@ processors:
172204
ignore_failure: true
173205
if: ctx.client?.user?.name == null
174206
- append:
207+
tag: append_related_user_2353f6bb
175208
field: related.user
176209
value: '{{{client.user.name}}}'
177210
if: ctx.client?.user?.name != null
178211
allow_duplicates: false
179212
ignore_failure: true
180213
- append:
214+
tag: append_related_user_7577f3af
181215
field: related.user
182216
value: '{{{client.user.email}}}'
183217
if: ctx.client?.user?.email != null
184218
allow_duplicates: false
185219
ignore_failure: true
186220
- convert:
221+
tag: convert_cisco_ise_log_log_details_ConfigVersionId_to_cisco_ise_log_config_version_id_ca41f4e8
187222
field: cisco_ise.log.log_details.ConfigVersionId
188223
target_field: cisco_ise.log.config_version.id
189224
type: long
190225
ignore_missing: true
191226
on_failure:
192227
- append:
228+
tag: append_error_message_75ad9459
193229
field: error.message
194230
value: "{{{ _ingest.on_failure_message }}}"
195231
- remove:
232+
tag: remove_cisco_ise_log_log_details_ConfigVersionId_1541aee9
196233
field: cisco_ise.log.log_details.ConfigVersionId
197234
ignore_missing: true
198235
- lowercase:
236+
tag: lowercase_log_syslog_severity_name_8199098d
199237
field: log.syslog.severity.name
200238
ignore_failure: true
201239
ignore_missing: true
202240
- set:
241+
tag: set_log_level_0fe20f2e
203242
field: log.level
204243
copy_from: log.syslog.severity.name
205244
ignore_empty_value: true
206245
- remove:
246+
tag: remove_25df5c8b
207247
field:
208248
- _tmp
209249
- cisco_ise.log.log_details_raw
210250
ignore_missing: true
211251
- set:
252+
tag: set_event_code_8f539d1f
212253
field: event.code
213254
copy_from: cisco_ise.log.message.code
214255
if: ctx.cisco_ise?.log?.message?.code != null
215256
ignore_failure: true
216257
- script:
258+
tag: script_26df8eab
217259
lang: painless
218-
source:
260+
source: |
219261
boolean dropEmptyFields(Object object) {
220262
if (object == null || object == '') {
221263
return true;
@@ -235,4 +277,8 @@ on_failure:
235277
value: pipeline_error
236278
- append:
237279
field: error.message
238-
value: '{{{_ingest.on_failure_message}}}'
280+
value: >-
281+
Processor '{{{ _ingest.on_failure_processor_type }}}'
282+
{{#_ingest.on_failure_processor_tag}}with tag '{{{ _ingest.on_failure_processor_tag }}}'
283+
{{/_ingest.on_failure_processor_tag}}in pipeline '{{{ _ingest.pipeline }}}'
284+
failed with message '{{{ _ingest.on_failure_message }}}'

0 commit comments

Comments
 (0)