/
components.rst
2909 lines (2091 loc) · 139 KB
/
components.rst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Components
==========
You'll find here the list of all usable Processors, Engines, Services and other components that can be usable out of the box in your analytics streams
----------
.. _com.hurence.logisland.processor.AddFields:
AddFields
---------
Add one or more field with a default value
...
Module
______
com.hurence.logisland:logisland-processor-common:1.1.2
Class
_____
com.hurence.logisland.processor.AddFields
Tags
____
record, fields, Add
Properties
__________
In the list below, the names of required properties appear in **bold**. Any other properties (not in bold) are considered optional. The table also indicates any default values
.
.. csv-table:: allowable-values
:header: "Name","Description","Allowable Values","Default Value","Sensitive","EL"
:widths: 20,60,30,20,10,10
"conflict.resolution.policy", "What to do when a field with the same name already exists ?", "overwrite existing field (if field already exist), keep only old field value (keep only old field)", "keep_only_old_field", "", ""
Dynamic Properties
__________________
Dynamic Properties allow the user to specify both the name and value of a property.
.. csv-table:: dynamic-properties
:header: "Name","Value","Description","EL"
:widths: 20,20,40,10
"field to add", "a default value", "Add a field to the record with the default value", ""
----------
.. _com.hurence.logisland.processor.ApplyRegexp:
ApplyRegexp
-----------
This processor is used to create a new set of fields from one field (using regexp).
Module
______
com.hurence.logisland:logisland-processor-common:1.1.2
Class
_____
com.hurence.logisland.processor.ApplyRegexp
Tags
____
parser, regex, log, record
Properties
__________
In the list below, the names of required properties appear in **bold**. Any other properties (not in bold) are considered optional. The table also indicates any default values
.
.. csv-table:: allowable-values
:header: "Name","Description","Allowable Values","Default Value","Sensitive","EL"
:widths: 20,60,30,20,10,10
"conflict.resolution.policy", "What to do when a field with the same name already exists ?", "overwrite existing field (if field already exist), keep only old field (keep only old field)", "keep_only_old_field", "", ""
Dynamic Properties
__________________
Dynamic Properties allow the user to specify both the name and value of a property.
.. csv-table:: dynamic-properties
:header: "Name","Value","Description","EL"
:widths: 20,20,40,10
"alternative regex & mapping", "another regex that could match", "This processor is used to create a new set of fields from one field (using regexp).", **true**
See Also:
_________
`com.hurence.logisland.processor.ApplyRegexp`_
----------
.. _com.hurence.logisland.processor.elasticsearch.BulkAddElasticsearch:
BulkAddElasticsearch
--------------------
Indexes the content of a Record in Elasticsearch using elasticsearch's bulk processor
Module
______
com.hurence.logisland:logisland-processor-elasticsearch:1.1.2
Class
_____
com.hurence.logisland.processor.elasticsearch.BulkAddElasticsearch
Tags
____
elasticsearch
Properties
__________
In the list below, the names of required properties appear in **bold**. Any other properties (not in bold) are considered optional. The table also indicates any default values
, and whether a property supports the `Expression Language <expression-language.html>`_ .
.. csv-table:: allowable-values
:header: "Name","Description","Allowable Values","Default Value","Sensitive","EL"
:widths: 20,60,30,20,10,10
"**elasticsearch.client.service**", "The instance of the Controller Service to use for accessing Elasticsearch.", "", "null", "", ""
"**default.index**", "The name of the index to insert into", "", "null", "", "**true**"
"**default.type**", "The type of this document (used by Elasticsearch for indexing and searching)", "", "null", "", "**true**"
"**timebased.index**", "do we add a date suffix", "No date (no date added to default index), Today's date (today's date added to default index), yesterday's date (yesterday's date added to default index)", "no", "", ""
"es.index.field", "the name of the event field containing es index name => will override index value if set", "", "null", "", ""
"es.type.field", "the name of the event field containing es doc type => will override type value if set", "", "null", "", ""
----------
.. _com.hurence.logisland.processor.datastore.BulkPut:
BulkPut
-------
Indexes the content of a Record in a Datastore using bulk processor
Module
______
com.hurence.logisland:logisland-processor-common:1.1.2
Class
_____
com.hurence.logisland.processor.datastore.BulkPut
Tags
____
datastore, record, put, bulk
Properties
__________
In the list below, the names of required properties appear in **bold**. Any other properties (not in bold) are considered optional. The table also indicates any default values
, and whether a property supports the `Expression Language <expression-language.html>`_ .
.. csv-table:: allowable-values
:header: "Name","Description","Allowable Values","Default Value","Sensitive","EL"
:widths: 20,60,30,20,10,10
"**datastore.client.service**", "The instance of the Controller Service to use for accessing datastore.", "", "null", "", ""
"**default.collection**", "The name of the collection/index/table to insert into", "", "null", "", "**true**"
"**timebased.collection**", "do we add a date suffix", "No date (no date added to default index), Today's date (today's date added to default index), yesterday's date (yesterday's date added to default index)", "no", "", ""
"date.format", "simple date format for date suffix. default : yyyy.MM.dd", "", "yyyy.MM.dd", "", ""
"collection.field", "the name of the event field containing es index name => will override index value if set", "", "null", "", "**true**"
----------
.. _com.hurence.logisland.service.cassandra.CassandraControllerService:
CassandraControllerService
--------------------------
Provides a controller service that for the moment only allows to bulkput records into cassandra.
Module
______
com.hurence.logisland:logisland-service-cassandra-client:1.1.2
Class
_____
com.hurence.logisland.service.cassandra.CassandraControllerService
Tags
____
cassandra, service
Properties
__________
In the list below, the names of required properties appear in **bold**. Any other properties (not in bold) are considered optional. The table also indicates any default values
.
.. csv-table:: allowable-values
:header: "Name","Description","Allowable Values","Default Value","Sensitive","EL"
:widths: 20,60,30,20,10,10
"**cassandra.hosts**", "Cassandra cluster hosts as a comma separated value list", "", "null", "", ""
"**cassandra.port**", "Cassandra cluster port", "", "null", "", ""
"cassandra.with-ssl", "If this property is true, use SSL. Default is no SSL (false).", "", "false", "", ""
"cassandra.with-credentials", "If this property is true, use credentials. Default is no credentials (false).", "", "false", "", ""
"cassandra.credentials.user", "The user name to use for authentication. cassandra.with-credentials must be true for that property to be used.", "", "null", "", ""
"cassandra.credentials.password", "The user password to use for authentication. cassandra.with-credentials must be true for that property to be used.", "", "null", "", ""
"batch.size", "The preferred number of Records to setField to the database in a single transaction", "", "1000", "", ""
"bulk.size", "bulk size in MB", "", "5", "", ""
"flush.interval", "flush interval in ms", "", "500", "", ""
----------
.. _com.hurence.logisland.processor.alerting.CheckAlerts:
CheckAlerts
-----------
Add one or more field with a default value
Module
______
com.hurence.logisland:logisland-processor-common:1.1.2
Class
_____
com.hurence.logisland.processor.alerting.CheckAlerts
Tags
____
record, alerting, thresholds, opc, tag
Properties
__________
In the list below, the names of required properties appear in **bold**. Any other properties (not in bold) are considered optional. The table also indicates any default values
.
.. csv-table:: allowable-values
:header: "Name","Description","Allowable Values","Default Value","Sensitive","EL"
:widths: 20,60,30,20,10,10
"max.cpu.time", "maximum CPU time in milliseconds allowed for script execution.", "", "100", "", ""
"max.memory", "maximum memory in Bytes which JS executor thread can allocate", "", "51200", "", ""
"allow.no.brace", "Force, to check if all blocks are enclosed with curly braces ""{}"".
.. raw:: html
<p>
Explanation: all loops (for, do-while, while, and if-else, and functions
should use braces, because poison_pill() function will be inserted after
each open brace ""{"", to ensure interruption checking. Otherwise simple
code like:
<pre>
while(true) while(true) {
// do nothing
}
</pre>
or even:
<pre>
while(true)
</pre>
cause unbreakable loop, which force this sandbox to use {@link Thread#stop()}
which make JVM unstable.
</p>
<p>
Properly writen code (even in bad intention) like:
<pre>
while(true) { while(true) {
// do nothing
}}
</pre>
will be changed into:
<pre>
while(true) {poison_pill();
while(true) {poison_pill();
// do nothing
}
}
</pre>
which finish nicely when interrupted.
<p>
For legacy code, this check can be turned off, but with no guarantee, the
JS thread will gracefully finish when interrupted.
</p>", "", "false", "", ""
"max.prepared.statements", "The size of prepared statements LRU cache. Default 0 (disabled).
.. raw:: html
<p>
Each statements when setMaxCPUTime(long) is set is prepared to
quit itself when time exceeded. To execute only once this procedure per
statement set this value.
</p>
<p>
When setMaxCPUTime(long) is set 0, this value is ignored.
</p>
", "", "30", "", ""
"**datastore.client.service**", "The instance of the Controller Service to use for accessing datastore.", "", "null", "", ""
"datastore.cache.collection", "The collection where to find cached objects", "", "test", "", ""
"js.cache.service", "The cache service to be used to store already sanitized JS expressions. If not specified a in-memory unlimited hash map will be used.", "", "null", "", ""
"output.record.type", "the type of the output record", "", "event", "", ""
"profile.activation.condition", "A javascript expression that activates this alerting profile when true", "", "0==0", "", ""
"alert.criticity", "from 0 to ...", "", "0", "", ""
Dynamic Properties
__________________
Dynamic Properties allow the user to specify both the name and value of a property.
.. csv-table:: dynamic-properties
:header: "Name","Value","Description","EL"
:widths: 20,20,40,10
"field to add", "a default value", "Add a field to the record with the default value", ""
----------
.. _com.hurence.logisland.processor.alerting.CheckThresholds:
CheckThresholds
---------------
Compute threshold cross from given formulas.
- each dynamic property will return a new record according to the formula definition
- the record name will be set to the property name
- the record time will be set to the current timestamp
Module
______
com.hurence.logisland:logisland-processor-common:1.1.2
Class
_____
com.hurence.logisland.processor.alerting.CheckThresholds
Tags
____
record, threshold, tag, alerting
Properties
__________
In the list below, the names of required properties appear in **bold**. Any other properties (not in bold) are considered optional. The table also indicates any default values
.
.. csv-table:: allowable-values
:header: "Name","Description","Allowable Values","Default Value","Sensitive","EL"
:widths: 20,60,30,20,10,10
"max.cpu.time", "maximum CPU time in milliseconds allowed for script execution.", "", "100", "", ""
"max.memory", "maximum memory in Bytes which JS executor thread can allocate", "", "51200", "", ""
"allow.no.brace", "Force, to check if all blocks are enclosed with curly braces ""{}"".
.. raw:: html
<p>
Explanation: all loops (for, do-while, while, and if-else, and functions
should use braces, because poison_pill() function will be inserted after
each open brace ""{"", to ensure interruption checking. Otherwise simple
code like:
<pre>
while(true) while(true) {
// do nothing
}
</pre>
or even:
<pre>
while(true)
</pre>
cause unbreakable loop, which force this sandbox to use {@link Thread#stop()}
which make JVM unstable.
</p>
<p>
Properly writen code (even in bad intention) like:
<pre>
while(true) { while(true) {
// do nothing
}}
</pre>
will be changed into:
<pre>
while(true) {poison_pill();
while(true) {poison_pill();
// do nothing
}
}
</pre>
which finish nicely when interrupted.
<p>
For legacy code, this check can be turned off, but with no guarantee, the
JS thread will gracefully finish when interrupted.
</p>", "", "false", "", ""
"max.prepared.statements", "The size of prepared statements LRU cache. Default 0 (disabled).
.. raw:: html
<p>
Each statements when setMaxCPUTime(long) is set is prepared to
quit itself when time exceeded. To execute only once this procedure per
statement set this value.
</p>
<p>
When setMaxCPUTime(long) is set 0, this value is ignored.
</p>
", "", "30", "", ""
"**datastore.client.service**", "The instance of the Controller Service to use for accessing datastore.", "", "null", "", ""
"datastore.cache.collection", "The collection where to find cached objects", "", "test", "", ""
"js.cache.service", "The cache service to be used to store already sanitized JS expressions. If not specified a in-memory unlimited hash map will be used.", "", "null", "", ""
"output.record.type", "the type of the output record", "", "event", "", ""
"record.ttl", "How long (in ms) do the record will remain in cache", "", "30000", "", ""
"min.update.time.ms", "The minimum amount of time (in ms) that we expect between two consecutive update of the same threshold record", "", "200", "", ""
Dynamic Properties
__________________
Dynamic Properties allow the user to specify both the name and value of a property.
.. csv-table:: dynamic-properties
:header: "Name","Value","Description","EL"
:widths: 20,20,40,10
"field to add", "a default value", "Add a field to the record with the default value", ""
----------
.. _com.hurence.logisland.processor.alerting.ComputeTags:
ComputeTags
-----------
Compute tag cross from given formulas.
- each dynamic property will return a new record according to the formula definition
- the record name will be set to the property name
- the record time will be set to the current timestamp
a threshold_cross has the following properties : count, sum, avg, time, duration, value
Module
______
com.hurence.logisland:logisland-processor-common:1.1.2
Class
_____
com.hurence.logisland.processor.alerting.ComputeTags
Tags
____
record, fields, Add
Properties
__________
In the list below, the names of required properties appear in **bold**. Any other properties (not in bold) are considered optional. The table also indicates any default values
.
.. csv-table:: allowable-values
:header: "Name","Description","Allowable Values","Default Value","Sensitive","EL"
:widths: 20,60,30,20,10,10
"max.cpu.time", "maximum CPU time in milliseconds allowed for script execution.", "", "100", "", ""
"max.memory", "maximum memory in Bytes which JS executor thread can allocate", "", "51200", "", ""
"allow.no.brace", "Force, to check if all blocks are enclosed with curly braces ""{}"".
.. raw:: html
<p>
Explanation: all loops (for, do-while, while, and if-else, and functions
should use braces, because poison_pill() function will be inserted after
each open brace ""{"", to ensure interruption checking. Otherwise simple
code like:
<pre>
while(true) while(true) {
// do nothing
}
</pre>
or even:
<pre>
while(true)
</pre>
cause unbreakable loop, which force this sandbox to use {@link Thread#stop()}
which make JVM unstable.
</p>
<p>
Properly writen code (even in bad intention) like:
<pre>
while(true) { while(true) {
// do nothing
}}
</pre>
will be changed into:
<pre>
while(true) {poison_pill();
while(true) {poison_pill();
// do nothing
}
}
</pre>
which finish nicely when interrupted.
<p>
For legacy code, this check can be turned off, but with no guarantee, the
JS thread will gracefully finish when interrupted.
</p>", "", "false", "", ""
"max.prepared.statements", "The size of prepared statements LRU cache. Default 0 (disabled).
.. raw:: html
<p>
Each statements when setMaxCPUTime(long) is set is prepared to
quit itself when time exceeded. To execute only once this procedure per
statement set this value.
</p>
<p>
When setMaxCPUTime(long) is set 0, this value is ignored.
</p>
", "", "30", "", ""
"**datastore.client.service**", "The instance of the Controller Service to use for accessing datastore.", "", "null", "", ""
"datastore.cache.collection", "The collection where to find cached objects", "", "test", "", ""
"js.cache.service", "The cache service to be used to store already sanitized JS expressions. If not specified a in-memory unlimited hash map will be used.", "", "null", "", ""
"output.record.type", "the type of the output record", "", "event", "", ""
Dynamic Properties
__________________
Dynamic Properties allow the user to specify both the name and value of a property.
.. csv-table:: dynamic-properties
:header: "Name","Value","Description","EL"
:widths: 20,20,40,10
"field to add", "a default value", "Add a field to the record with the default value", ""
----------
.. _com.hurence.logisland.processor.webAnalytics.ConsolidateSession:
ConsolidateSession
------------------
The ConsolidateSession processor is the Logisland entry point to get and process events from the Web Analytics.As an example here is an incoming event from the Web Analytics:
"fields": [{ "name": "timestamp", "type": "long" },{ "name": "remoteHost", "type": "string"},{ "name": "record_type", "type": ["null", "string"], "default": null },{ "name": "record_id", "type": ["null", "string"], "default": null },{ "name": "location", "type": ["null", "string"], "default": null },{ "name": "hitType", "type": ["null", "string"], "default": null },{ "name": "eventCategory", "type": ["null", "string"], "default": null },{ "name": "eventAction", "type": ["null", "string"], "default": null },{ "name": "eventLabel", "type": ["null", "string"], "default": null },{ "name": "localPath", "type": ["null", "string"], "default": null },{ "name": "q", "type": ["null", "string"], "default": null },{ "name": "n", "type": ["null", "int"], "default": null },{ "name": "referer", "type": ["null", "string"], "default": null },{ "name": "viewportPixelWidth", "type": ["null", "int"], "default": null },{ "name": "viewportPixelHeight", "type": ["null", "int"], "default": null },{ "name": "screenPixelWidth", "type": ["null", "int"], "default": null },{ "name": "screenPixelHeight", "type": ["null", "int"], "default": null },{ "name": "partyId", "type": ["null", "string"], "default": null },{ "name": "sessionId", "type": ["null", "string"], "default": null },{ "name": "pageViewId", "type": ["null", "string"], "default": null },{ "name": "is_newSession", "type": ["null", "boolean"],"default": null },{ "name": "userAgentString", "type": ["null", "string"], "default": null },{ "name": "pageType", "type": ["null", "string"], "default": null },{ "name": "UserId", "type": ["null", "string"], "default": null },{ "name": "B2Bunit", "type": ["null", "string"], "default": null },{ "name": "pointOfService", "type": ["null", "string"], "default": null },{ "name": "companyID", "type": ["null", "string"], "default": null },{ "name": "GroupCode", "type": ["null", "string"], "default": null },{ "name": "userRoles", "type": ["null", "string"], "default": null },{ "name": "is_PunchOut", "type": ["null", "string"], "default": null }]The ConsolidateSession processor groups the records by sessions and compute the duration between now and the last received event. If the distance from the last event is beyond a given threshold (by default 30mn), then the session is considered closed.The ConsolidateSession is building an aggregated session object for each active session.This aggregated object includes: - The actual session duration. - A boolean representing wether the session is considered active or closed. Note: it is possible to ressurect a session if for instance an event arrives after a session has been marked closed. - User related infos: userId, B2Bunit code, groupCode, userRoles, companyId - First visited page: URL - Last visited page: URL The properties to configure the processor are: - sessionid.field: Property name containing the session identifier (default: sessionId). - timestamp.field: Property name containing the timestamp of the event (default: timestamp). - session.timeout: Timeframe of inactivity (in seconds) after which a session is considered closed (default: 30mn). - visitedpage.field: Property name containing the page visited by the customer (default: location). - fields.to.return: List of fields to return in the aggregated object. (default: N/A)
Module
______
com.hurence.logisland:logisland-processor-web-analytics:1.1.2
Class
_____
com.hurence.logisland.processor.webAnalytics.ConsolidateSession
Tags
____
analytics, web, session
Properties
__________
In the list below, the names of required properties appear in **bold**. Any other properties (not in bold) are considered optional. The table also indicates any default values
.
.. csv-table:: allowable-values
:header: "Name","Description","Allowable Values","Default Value","Sensitive","EL"
:widths: 20,60,30,20,10,10
"debug", "Enable debug. If enabled, the original JSON string is embedded in the record_value field of the record.", "", "null", "", ""
"session.timeout", "session timeout in sec", "", "1800", "", ""
"sessionid.field", "the name of the field containing the session id => will override default value if set", "", "sessionId", "", ""
"timestamp.field", "the name of the field containing the timestamp => will override default value if set", "", "h2kTimestamp", "", ""
"visitedpage.field", "the name of the field containing the visited page => will override default value if set", "", "location", "", ""
"userid.field", "the name of the field containing the userId => will override default value if set", "", "userId", "", ""
"fields.to.return", "the list of fields to return", "", "null", "", ""
"firstVisitedPage.out.field", "the name of the field containing the first visited page => will override default value if set", "", "firstVisitedPage", "", ""
"lastVisitedPage.out.field", "the name of the field containing the last visited page => will override default value if set", "", "lastVisitedPage", "", ""
"isSessionActive.out.field", "the name of the field stating whether the session is active or not => will override default value if set", "", "is_sessionActive", "", ""
"sessionDuration.out.field", "the name of the field containing the session duration => will override default value if set", "", "sessionDuration", "", ""
"eventsCounter.out.field", "the name of the field containing the session duration => will override default value if set", "", "eventsCounter", "", ""
"firstEventDateTime.out.field", "the name of the field containing the date of the first event => will override default value if set", "", "firstEventDateTime", "", ""
"lastEventDateTime.out.field", "the name of the field containing the date of the last event => will override default value if set", "", "lastEventDateTime", "", ""
"sessionInactivityDuration.out.field", "the name of the field containing the session inactivity duration => will override default value if set", "", "sessionInactivityDuration", "", ""
----------
.. _com.hurence.logisland.processor.ConvertFieldsType:
ConvertFieldsType
-----------------
Converts a field value into the given type. does nothing if conversion is not possible
Module
______
com.hurence.logisland:logisland-processor-common:1.1.2
Class
_____
com.hurence.logisland.processor.ConvertFieldsType
Tags
____
type, fields, update, convert
Properties
__________
This component has no required or optional properties.
Dynamic Properties
__________________
Dynamic Properties allow the user to specify both the name and value of a property.
.. csv-table:: dynamic-properties
:header: "Name","Value","Description","EL"
:widths: 20,20,40,10
"field", "the new type", "convert field value into new type", **true**
----------
.. _com.hurence.logisland.processor.ConvertSimpleDateFormatFields:
ConvertSimpleDateFormatFields
-----------------------------
Convert one or more field representing a date into a Unix Epoch Time (time in milliseconds since &st January 1970, 00:00:00 GMT)
...
Module
______
com.hurence.logisland:logisland-processor-common:1.1.2
Class
_____
com.hurence.logisland.processor.ConvertSimpleDateFormatFields
Tags
____
record, fields, Add
Properties
__________
In the list below, the names of required properties appear in **bold**. Any other properties (not in bold) are considered optional. The table also indicates any default values
.
.. csv-table:: allowable-values
:header: "Name","Description","Allowable Values","Default Value","Sensitive","EL"
:widths: 20,60,30,20,10,10
"conflict.resolution.policy", "What to do when a field with the same name already exists ?", "overwrite existing field (if field already exist), keep only old field value (keep only old field)", "keep_only_old_field", "", ""
"**input.date.format**", "Simple date format representation of the input field to convert", "", "null", "", ""
"**timezone**", "Specify the timezone (default is CET)", "", "CET", "", ""
Dynamic Properties
__________________
Dynamic Properties allow the user to specify both the name and value of a property.
.. csv-table:: dynamic-properties
:header: "Name","Value","Description","EL"
:widths: 20,20,40,10
"field to convert", "a default value", "Add a field to the record with the default value", ""
----------
.. _com.hurence.logisland.processor.DebugStream:
DebugStream
-----------
This is a processor that logs incoming records
Module
______
com.hurence.logisland:logisland-processor-common:1.1.2
Class
_____
com.hurence.logisland.processor.DebugStream
Tags
____
record, debug
Properties
__________
In the list below, the names of required properties appear in **bold**. Any other properties (not in bold) are considered optional. The table also indicates any default values
.
.. csv-table:: allowable-values
:header: "Name","Description","Allowable Values","Default Value","Sensitive","EL"
:widths: 20,60,30,20,10,10
"**event.serializer**", "the way to serialize event", "Json serialization (serialize events as json blocs), String serialization (serialize events as toString() blocs)", "json", "", ""
----------
.. _com.hurence.logisland.processor.DetectOutliers:
DetectOutliers
--------------
Outlier Analysis: A Hybrid Approach
In order to function at scale, a two-phase approach is taken
For every data point
- Detect outlier candidates using a robust estimator of variability (e.g. median absolute deviation) that uses distributional sketching (e.g. Q-trees)
- Gather a biased sample (biased by recency)
- Extremely deterministic in space and cheap in computation
For every outlier candidate
- Use traditional, more computationally complex approaches to outlier analysis (e.g. Robust PCA) on the biased sample
- Expensive computationally, but run infrequently
This becomes a data filter which can be attached to a timeseries data stream within a distributed computational framework (i.e. Storm, Spark, Flink, NiFi) to detect outliers.
Module
______
com.hurence.logisland:logisland-processor-outlier-detection:1.1.2
Class
_____
com.hurence.logisland.processor.DetectOutliers
Tags
____
analytic, outlier, record, iot, timeseries
Properties
__________
In the list below, the names of required properties appear in **bold**. Any other properties (not in bold) are considered optional. The table also indicates any default values
.
.. csv-table:: allowable-values
:header: "Name","Description","Allowable Values","Default Value","Sensitive","EL"
:widths: 20,60,30,20,10,10
"**value.field**", "the numeric field to get the value", "", "record_value", "", ""
"**time.field**", "the numeric field to get the value", "", "record_time", "", ""
"output.record.type", "the output type of the record", "", "alert_match", "", ""
"**rotation.policy.type**", "...", "by_amount, by_time, never", "by_amount", "", ""
"**rotation.policy.amount**", "...", "", "100", "", ""
"**rotation.policy.unit**", "...", "milliseconds, seconds, hours, days, months, years, points", "points", "", ""
"**chunking.policy.type**", "...", "by_amount, by_time, never", "by_amount", "", ""
"**chunking.policy.amount**", "...", "", "100", "", ""
"**chunking.policy.unit**", "...", "milliseconds, seconds, hours, days, months, years, points", "points", "", ""
"sketchy.outlier.algorithm", "...", "SKETCHY_MOVING_MAD", "SKETCHY_MOVING_MAD", "", ""
"batch.outlier.algorithm", "...", "RAD", "RAD", "", ""
"global.statistics.min", "minimum value", "", "null", "", ""
"global.statistics.max", "maximum value", "", "null", "", ""
"global.statistics.mean", "mean value", "", "null", "", ""
"global.statistics.stddev", "standard deviation value", "", "null", "", ""
"**zscore.cutoffs.normal**", "zscoreCutoffs level for normal outlier", "", "0.000000000000001", "", ""
"**zscore.cutoffs.moderate**", "zscoreCutoffs level for moderate outlier", "", "1.5", "", ""
"**zscore.cutoffs.severe**", "zscoreCutoffs level for severe outlier", "", "10.0", "", ""
"zscore.cutoffs.notEnoughData", "zscoreCutoffs level for notEnoughData outlier", "", "100", "", ""
"smooth", "do smoothing ?", "", "false", "", ""
"decay", "the decay", "", "0.1", "", ""
"**min.amount.to.predict**", "minAmountToPredict", "", "100", "", ""
"min_zscore_percentile", "minZscorePercentile", "", "50.0", "", ""
"reservoir_size", "the size of points reservoir", "", "100", "", ""
"rpca.force.diff", "No Description Provided.", "", "null", "", ""
"rpca.lpenalty", "No Description Provided.", "", "null", "", ""
"rpca.min.records", "No Description Provided.", "", "null", "", ""
"rpca.spenalty", "No Description Provided.", "", "null", "", ""
"rpca.threshold", "No Description Provided.", "", "null", "", ""
----------
.. _com.hurence.logisland.service.elasticsearch.Elasticsearch_2_4_0_ClientService:
Elasticsearch_2_4_0_ClientService
---------------------------------
Implementation of ElasticsearchClientService for Elasticsearch 2.4.0.
Module
______
com.hurence.logisland:logisland-service-elasticsearch_2_4_0-client:1.1.2
Class
_____
com.hurence.logisland.service.elasticsearch.Elasticsearch_2_4_0_ClientService
Tags
____
elasticsearch, client
Properties
__________
In the list below, the names of required properties appear in **bold**. Any other properties (not in bold) are considered optional. The table also indicates any default values
, and whether a property is considered "sensitive", meaning that its value will be encrypted. Before entering a value in a sensitive property, ensure that the **logisland.properties** file has an entry for the property **logisland.sensitive.props.key**.
.. csv-table:: allowable-values
:header: "Name","Description","Allowable Values","Default Value","Sensitive","EL"
:widths: 20,60,30,20,10,10
"**backoff.policy**", "strategy for retrying to execute requests in bulkRequest", "No retry policy (when a request fail there won't be any retry.), wait a fixed amount of time between retries (wait a fixed amount of time between retries, using user put retry number and throttling delay), custom exponential policy (time waited between retries grow exponentially, using user put retry number and throttling delay), es default exponential policy (time waited between retries grow exponentially, using es default parameters)", "defaultExponentialBackoff", "", ""
"**throttling.delay**", "number of time we should wait between each retry (in milliseconds)", "", "500", "", ""
"**num.retry**", "number of time we should try to inject a bulk into es", "", "3", "", ""
"batch.size", "The preferred number of Records to setField to the database in a single transaction", "", "1000", "", ""
"bulk.size", "bulk size in MB", "", "5", "", ""
"flush.interval", "flush interval in sec", "", "5", "", ""
"concurrent.requests", "setConcurrentRequests", "", "2", "", ""
"**cluster.name**", "Name of the ES cluster (for example, elasticsearch_brew). Defaults to 'elasticsearch'", "", "elasticsearch", "", ""
"**ping.timeout**", "The ping timeout used to determine when a node is unreachable. For example, 5s (5 seconds). If non-local recommended is 30s", "", "5s", "", ""
"**sampler.interval**", "How often to sample / ping the nodes listed and connected. For example, 5s (5 seconds). If non-local recommended is 30s.", "", "5s", "", ""
"username", "Username to access the Elasticsearch cluster", "", "null", "", ""
"password", "Password to access the Elasticsearch cluster", "", "null", "**true**", ""
"shield.location", "Specifies the path to the JAR for the Elasticsearch Shield plugin. If the Elasticsearch cluster has been secured with the Shield plugin, then the Shield plugin JAR must also be available to this processor. Note: Do NOT place the Shield JAR into NiFi's lib/ directory, doing so will prevent the Shield plugin from being loaded.", "", "null", "", ""
"**hosts**", "ElasticSearch Hosts, which should be comma separated and colon for hostname/port host1:port,host2:port,.... For example testcluster:9300.", "", "null", "", ""
"ssl.context.service", "The SSL Context Service used to provide client certificate information for TLS/SSL connections. This service only applies if the Shield plugin is available.", "", "null", "", ""
"**charset**", "Specifies the character set of the document data.", "", "UTF-8", "", ""
----------
.. _com.hurence.logisland.service.elasticsearch.Elasticsearch_5_4_0_ClientService:
Elasticsearch_5_4_0_ClientService
---------------------------------
Implementation of ElasticsearchClientService for Elasticsearch 5.4.0.
Module
______
com.hurence.logisland:logisland-service-elasticsearch_5_4_0-client:1.1.2
Class
_____
com.hurence.logisland.service.elasticsearch.Elasticsearch_5_4_0_ClientService
Tags
____
elasticsearch, client
Properties
__________
In the list below, the names of required properties appear in **bold**. Any other properties (not in bold) are considered optional. The table also indicates any default values
, and whether a property is considered "sensitive", meaning that its value will be encrypted. Before entering a value in a sensitive property, ensure that the **logisland.properties** file has an entry for the property **logisland.sensitive.props.key**.
.. csv-table:: allowable-values
:header: "Name","Description","Allowable Values","Default Value","Sensitive","EL"
:widths: 20,60,30,20,10,10
"**backoff.policy**", "strategy for retrying to execute requests in bulkRequest", "No retry policy (when a request fail there won't be any retry.), wait a fixed amount of time between retries (wait a fixed amount of time between retries, using user put retry number and throttling delay), custom exponential policy (time waited between retries grow exponentially, using user put retry number and throttling delay), es default exponential policy (time waited between retries grow exponentially, using es default parameters)", "defaultExponentialBackoff", "", ""
"**throttling.delay**", "number of time we should wait between each retry (in milliseconds)", "", "500", "", ""
"**num.retry**", "number of time we should try to inject a bulk into es", "", "3", "", ""
"batch.size", "The preferred number of Records to setField to the database in a single transaction", "", "1000", "", ""
"bulk.size", "bulk size in MB", "", "5", "", ""
"flush.interval", "flush interval in sec", "", "5", "", ""
"concurrent.requests", "setConcurrentRequests", "", "2", "", ""
"**cluster.name**", "Name of the ES cluster (for example, elasticsearch_brew). Defaults to 'elasticsearch'", "", "elasticsearch", "", ""
"**ping.timeout**", "The ping timeout used to determine when a node is unreachable. For example, 5s (5 seconds). If non-local recommended is 30s", "", "5s", "", ""
"**sampler.interval**", "How often to sample / ping the nodes listed and connected. For example, 5s (5 seconds). If non-local recommended is 30s.", "", "5s", "", ""
"username", "Username to access the Elasticsearch cluster", "", "null", "", ""
"password", "Password to access the Elasticsearch cluster", "", "null", "**true**", ""
"shield.location", "Specifies the path to the JAR for the Elasticsearch Shield plugin. If the Elasticsearch cluster has been secured with the Shield plugin, then the Shield plugin JAR must also be available to this processor. Note: Do NOT place the Shield JAR into NiFi's lib/ directory, doing so will prevent the Shield plugin from being loaded.", "", "null", "", ""
"**hosts**", "ElasticSearch Hosts, which should be comma separated and colon for hostname/port host1:port,host2:port,.... For example testcluster:9300.", "", "null", "", ""
"ssl.context.service", "The SSL Context Service used to provide client certificate information for TLS/SSL connections. This service only applies if the Shield plugin is available.", "", "null", "", ""
"**charset**", "Specifies the character set of the document data.", "", "UTF-8", "", ""
----------
.. _com.hurence.logisland.processor.datastore.EnrichRecords:
EnrichRecords
-------------
Enrich input records with content indexed in datastore using multiget queries.
Each incoming record must be possibly enriched with information stored in datastore.
The plugin properties are :
- es.index (String) : Name of the datastore index on which the multiget query will be performed. This field is mandatory and should not be empty, otherwise an error output record is sent for this specific incoming record.
- record.key (String) : Name of the field in the input record containing the id to lookup document in elastic search. This field is mandatory.
- es.key (String) : Name of the datastore key on which the multiget query will be performed. This field is mandatory.
- includes (ArrayList<String>) : List of patterns to filter in (include) fields to retrieve. Supports wildcards. This field is not mandatory.
- excludes (ArrayList<String>) : List of patterns to filter out (exclude) fields to retrieve. Supports wildcards. This field is not mandatory.
Each outcoming record holds at least the input record plus potentially one or more fields coming from of one datastore document.
Module
______
com.hurence.logisland:logisland-processor-common:1.1.2
Class
_____
com.hurence.logisland.processor.datastore.EnrichRecords
Tags
____
datastore, enricher
Properties
__________