Skip to content

Commit 9e1fda0

Browse files
committed
Remove trailing spaces
1 parent d3db35b commit 9e1fda0

File tree

1 file changed

+8
-8
lines changed
  • packages/cisco_ios/data_stream/log/elasticsearch/ingest_pipeline

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ processors:
8686
UTC as before.
8787
if: ctx._temp_?.cisco_timestamp != null
8888
source: |-
89-
String get_timezone(def ctx) {
89+
String get_timezone(def ctx) {
9090
if (ctx._temp_?.tz != null) {
9191
if (ctx._conf?.tz_map != null) {
9292
for (def item : ctx._conf.tz_map) {
@@ -95,24 +95,24 @@ processors:
9595
}
9696
}
9797
}
98-
98+
9999
if (ctx._temp_.tz.length() <= 4) {
100100
// all time zone abbreviations need to be uppercase
101101
return ctx._temp_.tz.toUpperCase();
102102
}
103-
103+
104104
return ctx._temp_.tz;
105105
}
106-
106+
107107
if (ctx._conf?.tz_offset != null) {
108108
ctx.event.timezone = ctx._conf.tz_offset;
109109
return ctx._conf.tz_offset;
110110
}
111-
111+
112112
ctx.event.timezone = 'UTC';
113113
return 'UTC';
114114
}
115-
115+
116116
def event_timezone = get_timezone(ctx);
117117
if (!event_timezone.contains('+') && !event_timezone.contains('-') && !(event_timezone.length() > 4)) {
118118
// timezone abbreviation e.g. CEST need to be put inside the timestamp
@@ -245,7 +245,7 @@ processors:
245245
- grok:
246246
field: message
247247
tag: grok_message_rp_join
248-
patterns:
248+
patterns:
249249
- 'Received \(%{PIM_SOURCE}, %{DATA:cisco.ios.pim.group.ip}\) %{WORD:cisco.ios.action} from %{IP:source.address} for %{DATA:cisco.ios.outcome} %{IP:destination.address}'
250250
pattern_definitions:
251251
PIM_SOURCE: (%{IP:cisco.ios.pim.source.ip}|%{DATA})
@@ -422,7 +422,7 @@ processors:
422422
field: destination.as.asn
423423
target_field: destination.as.number
424424
ignore_missing: true
425-
- rename:
425+
- rename:
426426
field: destination.as.organization_name
427427
target_field: destination.as.organization.name
428428
ignore_missing: true

0 commit comments

Comments
 (0)