attrs = new HashMap<>();
69 | attrs.put(ERROR_WARN_RATE_ATTR, String.valueOf(actualRate));
70 | attrs.put(ERROR_WARN_TOTAL_ATTR, String.valueOf(totalWarnError));
71 | attrs.put(WINDOW_MILLIS_ATTR, String.valueOf(windowSizeMillis));
72 |
73 | byte[] content = builder.toString().getBytes(StandardCharsets.UTF_8);
74 | return new StandardNiFiDataPacket(content, attrs);
75 | }
76 |
77 | }
78 |
--------------------------------------------------------------------------------
/nifi-flink-examples/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | nifi-streaming-examples
7 | org.apache.nifi
8 | 0.0.1-SNAPSHOT
9 |
10 | 4.0.0
11 |
12 | nifi-flink-examples
13 |
14 |
15 | 1.1.2
16 |
17 |
18 |
19 |
20 | org.apache.flink
21 | flink-connector-nifi_2.10
22 | ${flink.version}
23 |
24 |
25 | org.apache.flink
26 | flink-streaming-java_2.10
27 | ${flink.version}
28 |
29 |
30 |
31 |
32 |
33 | WindowLogLevelCount
34 |
35 |
36 |
37 | org.apache.maven.plugins
38 | maven-shade-plugin
39 | 2.2
40 |
41 |
42 | package
43 |
44 | shade
45 |
46 |
47 |
48 |
49 |
50 | nifi.flink.examples.logs.WindowLogLevelCount
51 |
52 |
53 |
54 |
55 |
56 | *:*
57 |
58 | META-INF/*.SF
59 | META-INF/*.DSA
60 | META-INF/*.RSA
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Apache NiFi Streaming Examples
2 | Collection of examples integrating NiFi with stream process frameworks.
3 |
4 | ## Initial Setup
5 |
6 | * Download the latest [Apache NiFi release](https://nifi.apache.org/download.html)
7 |
8 | * Extract the tar and create two instances of NiFi:
9 |
10 | tar xzvf nifi-1.0.0-bin.tar.gz
11 | mv nifi-1.0.0 nifi-edge
12 | tar xzvf nifi-1.0.0-bin.tar.gz
13 | mv nifi-1.0.0 nifi-core
14 |
15 | * Configure the edge instance by editing nifi-edge/conf/nifi.properties and setting the following properties:
16 |
17 | nifi.remote.input.socket.port=7088
18 | nifi.remote.input.secure=false
19 | nifi.web.http.port=7080
20 |
21 | * Configure the core instance by editing nifi-core/conf/nifi.properties and setting the following properties:
22 |
23 | nifi.remote.input.socket.port=8088
24 | nifi.remote.input.secure=false
25 | nifi.web.http.port=8080
26 |
27 | * Start both instances
28 |
29 | ./nifi-core/bin/nifi.sh start
30 | ./nifi-edge/bin/nifi.sh start
31 |
32 | * Open the UI for both instances in a browser
33 |
34 | http://localhost:7080/nifi/
35 | http://localhost:8080/nifi/
36 |
37 | * Setup initial dictionary files
38 |
39 | mkdir nifi-edge/data
40 | mkdir nifi-edge/data/dictionary
41 | mkdir nifi-core/data
42 | mkdir nifi-core/data/dictionary
43 |
44 | * In each of the above dictionary directories, create a file called levels.txt with the content:
45 |
46 | ERROR
47 | WARN
48 |
49 |
50 | * Import nifi-streaming-examples/templates/nifi-log-example-edge.xml into the the edge instance (http://localhost:7080/nifi)
51 |
52 | * Import nifi-streaming-examples/templates/nifi-log-example-core.xml into the the core instance (http://localhost:8080/nifi)
53 |
54 | * Start everything on the core instance (http://localhost:8080/nifi)
55 | 
56 |
57 | * To start sending logs, starting everything on the edge instance (http://localhost:8080/nifi) EXCEPT the TailFile processor, the "Generate Test Logs" process group will send fake log messages
58 | 
59 |
60 | * To tail a real file, stop the "Generate Test Logs" process group, configure TailFile to point to your log file of choice, and start the TailFile processor
61 |
62 | ## Flink - WindowLogLevelCount - Setup
63 | * For local testing, run a standalone Flink streaming job
64 |
65 | cd nifi-flink-examples
66 | mvn clean package -PWindowLogLevelCount
67 | java -jar target/nifi-flink-examples-0.0.1-SNAPSHOT.jar
68 |
69 |
70 | ## Apex - LogLevelApplicationRunner - Setup
71 |
72 | * For local testing, run LogLevelApplicationRunner from your favorite IDE:
73 |
74 | nifi-apex-examples/src/test/java/nifi/apex/examples/logs/LogLevelApplicationRunner.java
75 |
76 |
77 | ## Storm - LogLevelCountTopology - Setup
78 |
79 | * For local testing, run a standalone local Storm topology
80 |
81 | cd nifi-storm-examples
82 | mvn clean package -PLogLevelCountTopology
83 | java -jar target/nifi-storm-examples-0.0.1-SNAPSHOT.jar
84 |
85 |
--------------------------------------------------------------------------------
/nifi-flink-examples/src/main/java/nifi/flink/examples/logs/data/DictionaryBuilder.java:
--------------------------------------------------------------------------------
1 | package nifi.flink.examples.logs.data;
2 |
3 | import org.apache.flink.api.common.functions.RuntimeContext;
4 | import org.apache.flink.streaming.connectors.nifi.NiFiDataPacket;
5 | import org.apache.flink.streaming.connectors.nifi.NiFiDataPacketBuilder;
6 | import org.apache.flink.streaming.connectors.nifi.StandardNiFiDataPacket;
7 |
8 | import java.nio.charset.StandardCharsets;
9 | import java.util.HashMap;
10 | import java.util.Map;
11 |
12 | /**
13 | * Produces a dictionary file for NiFi containing the log levels that should be
14 | * collected based on the rate of error and warn messages coming in.
15 | */
16 | public class DictionaryBuilder implements NiFiDataPacketBuilder {
17 |
18 | public static final String ERROR = "ERROR";
19 | public static final String WARN = "WARN";
20 | public static final String INFO = "INFO";
21 | public static final String DEBUG = "DEBUG";
22 |
23 | public static final String ERROR_WARN_TOTAL_ATTR = "error.warn.total";
24 | public static final String ERROR_WARN_RATE_ATTR = "error.warn.rate";
25 | public static final String WINDOW_MILLIS_ATTR = "window.size.millis";
26 |
27 | private final int windowSizeMillis;
28 | private final double minRatePerSecond;
29 |
30 | /**
31 | * @param windowSizeMillis the windowSize in milliseconds that the LogLevels were computed over
32 | *
33 | * @param minRatePerSecond the rate of error and warn messages over the window that indicates not to
34 | * collect other levels, if the actual rate is less we can collect more
35 | */
36 | public DictionaryBuilder(final int windowSizeMillis, final double minRatePerSecond) {
37 | this.windowSizeMillis = windowSizeMillis;
38 | this.minRatePerSecond = minRatePerSecond;
39 | }
40 |
41 | @Override
42 | public NiFiDataPacket createNiFiDataPacket(LogLevels logLevels, RuntimeContext runtimeContext) {
43 | Map counts = logLevels.getLevels();
44 |
45 | // get the total number of error and warn messages
46 | int totalWarnError = 0;
47 | if (counts.containsKey(ERROR)) {
48 | totalWarnError += counts.get(ERROR);
49 | }
50 | if (counts.containsKey(WARN)) {
51 | totalWarnError += counts.get(WARN);
52 | }
53 |
54 | // calculate the number of ERROR/WARN messages per second
55 | double windowSizeSeconds = windowSizeMillis / 1000;
56 | double actualRate = ((double)totalWarnError) / windowSizeSeconds;
57 |
58 | // always collect ERROR/WARN messages
59 | StringBuilder builder = new StringBuilder();
60 | builder.append(ERROR).append("\n");
61 | builder.append(WARN).append("\n");
62 |
63 | // only collect INFO and DEBUG if ERROR/WARN is less than minimum rate
64 | if (actualRate < minRatePerSecond) {
65 | builder.append(INFO).append("\n");
66 | builder.append(DEBUG).append("\n");
67 | }
68 |
69 | // pass the rate, total, and window size as attributes
70 | Map attrs = new HashMap<>();
71 | attrs.put(ERROR_WARN_RATE_ATTR, String.valueOf(actualRate));
72 | attrs.put(ERROR_WARN_TOTAL_ATTR, String.valueOf(totalWarnError));
73 | attrs.put(WINDOW_MILLIS_ATTR, String.valueOf(windowSizeMillis));
74 |
75 | byte[] content = builder.toString().getBytes(StandardCharsets.UTF_8);
76 | return new StandardNiFiDataPacket(content, attrs);
77 | }
78 | }
79 |
--------------------------------------------------------------------------------
/nifi-storm-examples/src/main/java/nifi/storm/examples/data/DictionaryBuilder.java:
--------------------------------------------------------------------------------
1 | package nifi.storm.examples.data;
2 |
3 | import org.apache.nifi.storm.NiFiDataPacket;
4 | import org.apache.nifi.storm.NiFiDataPacketBuilder;
5 | import org.apache.nifi.storm.StandardNiFiDataPacket;
6 | import org.apache.storm.tuple.Tuple;
7 |
8 | import java.io.Serializable;
9 | import java.nio.charset.StandardCharsets;
10 | import java.util.HashMap;
11 | import java.util.Map;
12 |
13 | /**
14 | * Produces a dictionary file for NiFi containing the log levels that should be
15 | * collected based on the rate of error and warn messages coming in.
16 | *
17 | * @author bbende
18 | */
19 | public class DictionaryBuilder implements NiFiDataPacketBuilder, Serializable {
20 |
21 | public static final String ERROR = "ERROR";
22 | public static final String WARN = "WARN";
23 | public static final String INFO = "INFO";
24 | public static final String DEBUG = "DEBUG";
25 |
26 | public static final String ERROR_WARN_TOTAL_ATTR = "error.warn.total";
27 | public static final String ERROR_WARN_RATE_ATTR = "error.warn.rate";
28 | public static final String WINDOW_MILLIS_ATTR = "window.size.millis";
29 |
30 | private final int windowSizeMillis;
31 | private final double minRatePerSecond;
32 |
33 | /**
34 | * @param windowSizeMillis the windowSize in milliseconds that the LogLevels were computed over
35 | *
36 | * @param minRatePerSecond the rate of error and warn messages over the window that indicates not to
37 | * collect other levels, if the actual rate is less we can collect more
38 | */
39 | public DictionaryBuilder(final int windowSizeMillis, final double minRatePerSecond) {
40 | this.windowSizeMillis = windowSizeMillis;
41 | this.minRatePerSecond = minRatePerSecond;
42 | }
43 |
44 | @Override
45 | public NiFiDataPacket createNiFiDataPacket(Tuple tuple) {
46 | final LogLevels logLevels = (LogLevels) tuple.getValue(0);
47 |
48 | Map counts = logLevels.getLevels();
49 |
50 | // get the total number of error and warn messages
51 | int totalWarnError = 0;
52 | if (counts.containsKey(ERROR)) {
53 | totalWarnError += counts.get(ERROR);
54 | }
55 | if (counts.containsKey(WARN)) {
56 | totalWarnError += counts.get(WARN);
57 | }
58 |
59 | // calculate the number of ERROR/WARN messages per second
60 | double windowSizeSeconds = windowSizeMillis / 1000;
61 | double actualRate = ((double)totalWarnError) / windowSizeSeconds;
62 |
63 | // always collect ERROR/WARN messages
64 | StringBuilder builder = new StringBuilder();
65 | builder.append(ERROR).append("\n");
66 | builder.append(WARN).append("\n");
67 |
68 | // only collect INFO and DEBUG if ERROR/WARN is less than minimum rate
69 | if (actualRate < minRatePerSecond) {
70 | builder.append(INFO).append("\n");
71 | builder.append(DEBUG).append("\n");
72 | }
73 |
74 | // pass the rate, total, and window size as attributes
75 | Map attrs = new HashMap<>();
76 | attrs.put(ERROR_WARN_RATE_ATTR, String.valueOf(actualRate));
77 | attrs.put(ERROR_WARN_TOTAL_ATTR, String.valueOf(totalWarnError));
78 | attrs.put(WINDOW_MILLIS_ATTR, String.valueOf(windowSizeMillis));
79 |
80 | byte[] content = builder.toString().getBytes(StandardCharsets.UTF_8);
81 | return new StandardNiFiDataPacket(content, attrs);
82 | }
83 |
84 | }
85 |
--------------------------------------------------------------------------------
/nifi-apex-examples/src/main/java/nifi/apex/examples/logs/LogLevelApplication.java:
--------------------------------------------------------------------------------
1 | package nifi.apex.examples.logs;
2 |
3 | import com.datatorrent.api.Context;
4 | import com.datatorrent.api.DAG;
5 | import com.datatorrent.api.StreamingApplication;
6 | import com.datatorrent.api.annotation.ApplicationAnnotation;
7 | import com.datatorrent.contrib.nifi.NiFiDataPacketBuilder;
8 | import com.datatorrent.contrib.nifi.NiFiSinglePortInputOperator;
9 | import com.datatorrent.contrib.nifi.NiFiSinglePortOutputOperator;
10 | import nifi.apex.examples.logs.data.DictionaryBuilder;
11 | import nifi.apex.examples.logs.data.LogLevels;
12 | import nifi.apex.examples.logs.operators.LogLevelWindowCount;
13 | import org.apache.apex.malhar.lib.wal.WindowDataManager;
14 | import org.apache.hadoop.conf.Configuration;
15 | import org.apache.nifi.remote.client.SiteToSiteClient;
16 |
17 | /**
18 | * Application that pulls logs from NiFi and calculates the rate of ERROR/WARN messages
19 | * over a time window and sends a new set of levels to collect based on the rate.
20 | */
21 | @ApplicationAnnotation(name="LogLevelCount")
22 | public class LogLevelApplication implements StreamingApplication {
23 |
24 | @Override
25 | public void populateDAG(DAG dag, Configuration configuration) {
26 | LogLevelProperties props = new LogLevelProperties(configuration);
27 |
28 | //dag.setAttribute(Context.DAGContext.STREAMING_WINDOW_SIZE_MILLIS, props.getWindowMillis());
29 |
30 | // create the operator to receive data from NiFi
31 | WindowDataManager inManager = new WindowDataManager.NoopWindowDataManager();
32 | NiFiSinglePortInputOperator nifiInput = getNiFiInput(dag, props, inManager);
33 |
34 | // create the operator to count log levels over a window
35 | String attributName = props.getLogLevelAttribute();
36 | LogLevelWindowCount count = dag.addOperator("count", new LogLevelWindowCount(attributName));
37 | dag.setAttribute(count, Context.OperatorContext.APPLICATION_WINDOW_COUNT, props.getAppWindowCount());
38 |
39 | // create the operator to send data back to NiFi
40 | WindowDataManager outManager = new WindowDataManager.NoopWindowDataManager();
41 | NiFiSinglePortOutputOperator nifiOutput = getNiFiOutput(dag, props, outManager);
42 |
43 | // configure the dag to get nifi-in -> count -> nifi-out
44 | dag.addStream("nifi-in-count", nifiInput.outputPort, count.input);
45 | dag.addStream("count-nifi-out", count.output, nifiOutput.inputPort);
46 | }
47 |
48 | private NiFiSinglePortInputOperator getNiFiInput(DAG dag, LogLevelProperties props, WindowDataManager windowDataManager) {
49 | final SiteToSiteClient.Builder inputConfig = new SiteToSiteClient.Builder()
50 | .url(props.getNifiUrl())
51 | .portName(props.getNifiInputPort())
52 | .requestBatchCount(props.getNifiRequestBatch());
53 |
54 | return dag.addOperator("nifi-in", new NiFiSinglePortInputOperator(inputConfig, windowDataManager));
55 | }
56 |
57 | private NiFiSinglePortOutputOperator getNiFiOutput(DAG dag, LogLevelProperties props, WindowDataManager windowDataManager) {
58 | final SiteToSiteClient.Builder outputConfig = new SiteToSiteClient.Builder()
59 | .url(props.getNifiUrl())
60 | .portName(props.getNifiOutputPort());
61 |
62 | final int batchSize = 1;
63 | final NiFiDataPacketBuilder dataPacketBuilder = new DictionaryBuilder(
64 | props.getWindowMillis(), props.getLogLevelThreshold());
65 |
66 | return dag.addOperator("nifi-out", new NiFiSinglePortOutputOperator(
67 | outputConfig, dataPacketBuilder, windowDataManager ,batchSize));
68 | }
69 |
70 | }
71 |
--------------------------------------------------------------------------------
/nifi-flink-examples/src/main/java/nifi/flink/examples/logs/WindowLogLevelCount.java:
--------------------------------------------------------------------------------
1 | package nifi.flink.examples.logs;
2 |
3 | import nifi.flink.examples.logs.data.DictionaryBuilder;
4 | import nifi.flink.examples.logs.data.LogLevels;
5 | import nifi.flink.examples.logs.functions.LogLevelFlatMap;
6 | import nifi.flink.examples.logs.functions.LogLevelWindowCounter;
7 | import org.apache.flink.streaming.api.datastream.DataStream;
8 | import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
9 | import org.apache.flink.streaming.api.functions.source.SourceFunction;
10 | import org.apache.flink.streaming.api.windowing.time.Time;
11 | import org.apache.flink.streaming.connectors.nifi.NiFiDataPacket;
12 | import org.apache.flink.streaming.connectors.nifi.NiFiDataPacketBuilder;
13 | import org.apache.flink.streaming.connectors.nifi.NiFiSink;
14 | import org.apache.flink.streaming.connectors.nifi.NiFiSource;
15 | import org.apache.nifi.remote.client.SiteToSiteClient;
16 | import org.apache.nifi.remote.client.SiteToSiteClientConfig;
17 |
18 | import java.util.concurrent.TimeUnit;
19 |
20 | /**
21 | * Flink Streaming application that receives log data from NiFi and groups the logs by their
22 | * level, counting the number of logs per level over window.
23 | *
24 | * @author bbende
25 | */
26 | public class WindowLogLevelCount {
27 |
28 | public static final String DEFAULT_PROPERTIES_FILE = "window-log-level.properties";
29 |
30 | public static void main(String[] args) throws Exception {
31 | String propertiesFile = DEFAULT_PROPERTIES_FILE;
32 | if (args != null && args.length == 1 && args[0] != null) {
33 | propertiesFile = args[0];
34 | }
35 |
36 | WindowLogLevelCountProps props = new WindowLogLevelCountProps(propertiesFile);
37 |
38 | // Set up the execution environment
39 | StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
40 |
41 | // Configure the SiteToSiteClient
42 | SiteToSiteClientConfig clientConfig = getSourceConfig(props);
43 |
44 | // Create our data stream with a NiFiSource
45 | SourceFunction nifiSource = new NiFiSource(clientConfig);
46 | DataStream streamSource = env.addSource(nifiSource);
47 |
48 | int windowSize = props.getFlinkWindowMillis();
49 | LogLevelFlatMap logLevelFlatMap = new LogLevelFlatMap(props.getLogLevelAttribute());
50 |
51 | // Count the occurrences of each log level over a window
52 | DataStream counts =
53 | streamSource.flatMap(logLevelFlatMap)
54 | .timeWindowAll(Time.of(windowSize, TimeUnit.MILLISECONDS))
55 | .apply(new LogLevelWindowCounter());
56 |
57 | // Add the sink to send the dictionary back to NiFi
58 | double rateThreshold = props.getFlinkRateThreshold();
59 | SiteToSiteClientConfig sinkConfig = getSinkConfig(props);
60 | NiFiDataPacketBuilder builder = new DictionaryBuilder(windowSize, rateThreshold);
61 | counts.addSink(new NiFiSink<>(sinkConfig, builder));
62 |
63 | // execute program
64 | env.execute("WindowLogLevelCount");
65 | }
66 |
67 | private static SiteToSiteClientConfig getSourceConfig(WindowLogLevelCountProps props) {
68 | return new SiteToSiteClient.Builder()
69 | .url(props.getNifiUrl())
70 | .portName(props.getNifiInputPort())
71 | .requestBatchCount(props.getNifiRequestBatch())
72 | .buildConfig();
73 | }
74 |
75 | private static SiteToSiteClientConfig getSinkConfig(WindowLogLevelCountProps props) {
76 | return new SiteToSiteClient.Builder()
77 | .url(props.getNifiUrl())
78 | .portName(props.getNifiOutputPort())
79 | .buildConfig();
80 | }
81 |
82 | }
83 |
--------------------------------------------------------------------------------
/nifi-storm-examples/src/main/java/nifi/storm/examples/LogLevelCountTopology.java:
--------------------------------------------------------------------------------
1 | package nifi.storm.examples;
2 |
3 | import nifi.storm.examples.bolt.LogLevelWindowBolt;
4 | import nifi.storm.examples.data.DictionaryBuilder;
5 | import org.apache.nifi.remote.client.SiteToSiteClient;
6 | import org.apache.nifi.remote.client.SiteToSiteClientConfig;
7 | import org.apache.nifi.storm.NiFiBolt;
8 | import org.apache.nifi.storm.NiFiDataPacketBuilder;
9 | import org.apache.nifi.storm.NiFiSpout;
10 | import org.apache.storm.Config;
11 | import org.apache.storm.LocalCluster;
12 | import org.apache.storm.StormSubmitter;
13 | import org.apache.storm.topology.TopologyBuilder;
14 | import org.apache.storm.topology.base.BaseWindowedBolt;
15 | import org.apache.storm.utils.Utils;
16 |
17 | import java.util.Collections;
18 | import java.util.concurrent.TimeUnit;
19 |
20 | /**
21 | * Storm topology that receives log data from NiFi and counts the number of logs per level over a window,
22 | * sending a new dictionary file back to NiFi based on a rate threshold.
23 | *
24 | * @author bbende.
25 | */
26 | public class LogLevelCountTopology {
27 |
28 | public static final String DEFAULT_PROPERTIES_FILE = "log-level-count.properties";
29 |
30 | public static void main( String[] args ) throws Exception {
31 | String propertiesFile = DEFAULT_PROPERTIES_FILE;
32 | if (args != null && args.length == 1 && args[0] != null) {
33 | propertiesFile = args[0];
34 | }
35 |
36 | LogLevelCountProperties props = new LogLevelCountProperties(propertiesFile);
37 |
38 | int windowMillis = props.getStormWindowMillis();
39 | double rateThreshold = props.getStormRateThreshold();
40 |
41 | // Build the spout for pulling data from NiFi and pull out the log level into a tuple field
42 | NiFiSpout niFiSpout = new NiFiSpout(getSourceConfig(props), Collections.singletonList(props.getLogLevelAttribute()));
43 |
44 | // Build the bolt for counting log levels over a tumbling window
45 | BaseWindowedBolt logLevelWindowBolt = new LogLevelWindowBolt(props.getLogLevelAttribute())
46 | .withTumblingWindow(new BaseWindowedBolt.Duration(windowMillis, TimeUnit.MILLISECONDS));
47 |
48 | // Build the bolt for pushing results back to NiFi
49 | NiFiDataPacketBuilder dictionaryBuilder = new DictionaryBuilder(windowMillis, rateThreshold);
50 | NiFiBolt niFiBolt = new NiFiBolt(getSinkConfig(props), dictionaryBuilder, 10).withBatchSize(1);
51 |
52 | // Build the topology of NiFiSpout -> LogLevelWindowBolt -> NiFiBolt
53 | TopologyBuilder builder = new TopologyBuilder();
54 | builder.setSpout("nifiInput", niFiSpout);
55 | builder.setBolt("logLevels", logLevelWindowBolt).shuffleGrouping("nifiInput");
56 | builder.setBolt("nifiOutput", niFiBolt).shuffleGrouping("logLevels");
57 |
58 | // Submit the topology
59 | Config conf = new Config();
60 | conf.setDebug(true);
61 |
62 | // Need to set the message timeout to twice the window size in seconds
63 | conf.setMessageTimeoutSecs((props.getStormWindowMillis()/1000) * 2);
64 |
65 | if (args != null && args.length > 0) {
66 | conf.setNumWorkers(3);
67 | StormSubmitter.submitTopologyWithProgressBar(args[0], conf, builder.createTopology());
68 | }
69 | else {
70 | LocalCluster cluster = new LocalCluster();
71 | cluster.submitTopology("log-levels", conf, builder.createTopology());
72 | Utils.sleep(130000);
73 | cluster.killTopology("log-levels");
74 | cluster.shutdown();
75 | }
76 | }
77 |
78 | private static SiteToSiteClientConfig getSourceConfig(LogLevelCountProperties props) {
79 | return new SiteToSiteClient.Builder()
80 | .url(props.getNifiUrl())
81 | .portName(props.getNifiInputPort())
82 | .requestBatchCount(props.getNifiRequestBatch())
83 | .buildConfig();
84 | }
85 |
86 | private static SiteToSiteClientConfig getSinkConfig(LogLevelCountProperties props) {
87 | return new SiteToSiteClient.Builder()
88 | .url(props.getNifiUrl())
89 | .portName(props.getNifiOutputPort())
90 | .buildConfig();
91 | }
92 |
93 | }
94 |
--------------------------------------------------------------------------------
/nifi-flink-examples/src/main/java/nifi/flink/examples/logs/WindowLogLevelCountProps.java:
--------------------------------------------------------------------------------
1 | package nifi.flink.examples.logs;
2 |
3 | import java.io.IOException;
4 | import java.io.InputStream;
5 | import java.util.Properties;
6 |
7 | /**
8 | * Properties for WindowLogLevelAnalytic.
9 | */
10 | public class WindowLogLevelCountProps {
11 |
12 | static final String NIFI_URL = "nifi.url";
13 | static final String NIFI_INPUT_PORT = "nifi.input.port";
14 | static final String NIFI_REQUEST_BATCH = "nifi.input.request.batch";
15 | static final String NIFI_OUTPUT_PORT = "nifi.output.port";
16 |
17 | static final String FLINK_WINDOW_MILLIS = "flink.window.milliseconds";
18 | static final String FLINK_SLIDE_MILLIS = "flink.slide.milliseconds";
19 | static final String FLINK_RATE_THRESHOLD = "flink.rate.threshold";
20 |
21 | static final String FLINK_OUTPUT_PATH = "flink.output.path";
22 | static final String FLINK_OUTPUT_FILENAME = "flink.output.filename";
23 | static final String LOG_LEVEL_ATTRIBUTE = "log.level.attribute";
24 |
25 | private final String nifiUrl;
26 | private final String nifiInputPort;
27 | private final String nifiOutputPort;
28 | private final int nifiRequestBatch;
29 | private final int flinkWindowMillis;
30 | private final int flinkSlideMillis;
31 | private final double flinkRateThreshold;
32 | private final String flinkOutputPath;
33 | private final String flinkOutputFileName;
34 | private final String logLevelAttribute;
35 |
36 | public WindowLogLevelCountProps(final String propertiesFile) throws IOException {
37 | final InputStream in = this.getClass().getClassLoader().getResourceAsStream(propertiesFile);
38 |
39 | final Properties properties = new Properties();
40 | properties.load(in);
41 |
42 | nifiUrl = loadProperty(properties, NIFI_URL);
43 | nifiInputPort = loadProperty(properties, NIFI_INPUT_PORT);
44 | nifiOutputPort = loadProperty(properties, NIFI_OUTPUT_PORT);
45 |
46 | final String tempNiFiRequestBatch = loadProperty(properties, NIFI_REQUEST_BATCH);
47 | nifiRequestBatch = Integer.parseInt(tempNiFiRequestBatch);
48 |
49 | final String tempflinkWindowSize = loadProperty(properties, FLINK_WINDOW_MILLIS);
50 | flinkWindowMillis = Integer.parseInt(tempflinkWindowSize);
51 |
52 | final String tempFlinkSlideSize = loadProperty(properties, FLINK_SLIDE_MILLIS);
53 | flinkSlideMillis = Integer.parseInt(tempFlinkSlideSize);
54 |
55 | final String tempFlinkRateThreshold = loadProperty(properties, FLINK_RATE_THRESHOLD);
56 | flinkRateThreshold = Double.parseDouble(tempFlinkRateThreshold);
57 |
58 | flinkOutputPath = loadProperty(properties, FLINK_OUTPUT_PATH);
59 | flinkOutputFileName = loadProperty(properties, FLINK_OUTPUT_FILENAME);
60 |
61 | logLevelAttribute = loadProperty(properties, LOG_LEVEL_ATTRIBUTE);
62 | }
63 |
64 | private String loadProperty(final Properties properties, final String name) {
65 | final String value = properties.getProperty(name);
66 | if (value == null || value.trim().isEmpty()) {
67 | throw new IllegalStateException(name + " is a required property");
68 | }
69 | return value.trim();
70 | }
71 |
72 | public String getNifiUrl() {
73 | return nifiUrl;
74 | }
75 |
76 | public String getNifiInputPort() {
77 | return nifiInputPort;
78 | }
79 |
80 | public String getNifiOutputPort() {
81 | return nifiOutputPort;
82 | }
83 |
84 | public int getNifiRequestBatch() {
85 | return nifiRequestBatch;
86 | }
87 |
88 | public int getFlinkWindowMillis() {
89 | return flinkWindowMillis;
90 | }
91 |
92 | public int getFlinkSlideMillis() {
93 | return flinkSlideMillis;
94 | }
95 |
96 | public double getFlinkRateThreshold() {
97 | return flinkRateThreshold;
98 | }
99 |
100 | public String getFlinkOutputPath() {
101 | return flinkOutputPath;
102 | }
103 |
104 | public String getFlinkOutputFileName() {
105 | return flinkOutputFileName;
106 | }
107 |
108 | public String getLogLevelAttribute() {
109 | return logLevelAttribute;
110 | }
111 | }
112 |
--------------------------------------------------------------------------------
/nifi-apex-examples/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | nifi-streaming-examples
5 | org.apache.nifi
6 | 0.0.1-SNAPSHOT
7 |
8 | 4.0.0
9 |
10 | nifi-apex-examples
11 | jar
12 |
13 |
14 | 3.4.0
15 | 3.4.0
16 | lib/*.jar
17 |
18 |
19 |
20 |
21 |
22 | org.apache.maven.plugins
23 | maven-eclipse-plugin
24 | 2.9
25 |
26 | true
27 |
28 |
29 |
30 | maven-compiler-plugin
31 | 3.3
32 |
33 | UTF-8
34 | 1.7
35 | 1.7
36 | true
37 | false
38 | true
39 | true
40 |
41 |
42 |
43 | maven-dependency-plugin
44 | 2.8
45 |
46 |
47 | copy-dependencies
48 | prepare-package
49 |
50 | copy-dependencies
51 |
52 |
53 | target/deps
54 | runtime
55 |
56 |
57 |
58 |
59 |
60 |
61 | maven-assembly-plugin
62 |
63 |
64 | app-package-assembly
65 | package
66 |
67 | single
68 |
69 |
70 | ${project.artifactId}-${project.version}-apexapp
71 | false
72 |
73 | src/assemble/appPackage.xml
74 |
75 |
76 | 0755
77 |
78 |
79 |
80 | ${apex.apppackage.classpath}
81 | ${apex.version}
82 | ${project.groupId}
83 | ${project.artifactId}
84 | ${project.version}
85 | ${project.name}
86 | ${project.description}
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 | maven-antrun-plugin
96 | 1.7
97 |
98 |
99 | package
100 |
101 |
102 |
104 |
105 |
106 |
107 | run
108 |
109 |
110 |
111 |
112 | createJavadocDirectory
113 | generate-resources
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 | run
122 |
123 |
124 |
125 |
126 |
127 |
128 | org.codehaus.mojo
129 | build-helper-maven-plugin
130 | 1.9.1
131 |
132 |
133 | attach-artifacts
134 | package
135 |
136 | attach-artifact
137 |
138 |
139 |
140 |
141 | target/${project.artifactId}-${project.version}.apa
142 | apa
143 |
144 |
145 | false
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 | org.apache.maven.plugins
154 | maven-javadoc-plugin
155 |
156 |
157 |
158 | xml-doclet
159 | generate-resources
160 |
161 | javadoc
162 |
163 |
164 | com.github.markusbernhardt.xmldoclet.XmlDoclet
165 | -d ${project.build.directory}/generated-resources/xml-javadoc -filename ${project.artifactId}-${project.version}-javadoc.xml
166 | false
167 |
168 | com.github.markusbernhardt
169 | xml-doclet
170 | 1.0.4
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 | org.codehaus.mojo
179 | xml-maven-plugin
180 | 1.0
181 |
182 |
183 | transform-xmljavadoc
184 | generate-resources
185 |
186 | transform
187 |
188 |
189 |
190 |
191 |
192 |
193 | ${project.build.directory}/generated-resources/xml-javadoc
194 |
195 | ${project.artifactId}-${project.version}-javadoc.xml
196 |
197 | XmlJavadocCommentsExtractor.xsl
198 | ${project.build.directory}/generated-resources/xml-javadoc
199 |
200 |
201 |
202 |
203 |
204 |
205 | maven-resources-plugin
206 | 2.6
207 |
208 |
209 | copy-resources
210 | process-resources
211 |
212 | copy-resources
213 |
214 |
215 | ${basedir}/target/classes
216 |
217 |
218 | ${project.build.directory}/generated-resources/xml-javadoc
219 |
220 | ${project.artifactId}-${project.version}-javadoc.xml
221 |
222 | true
223 |
224 |
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 |
235 |
236 | org.apache.nifi
237 | nifi-site-to-site-client
238 |
239 |
240 | org.apache.apex
241 | malhar-library
242 | ${malhar.version}
243 |
244 |
245 | org.apache.apex
246 | malhar-contrib
247 | ${malhar.version}
248 |
249 |
250 | org.apache.apex
251 | apex-common
252 | ${apex.version}
253 | provided
254 |
255 |
256 | junit
257 | junit
258 | 4.10
259 | test
260 |
261 |
262 | org.apache.apex
263 | apex-engine
264 | ${apex.version}
265 | test
266 |
267 |
268 |
269 |
270 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "{}"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright {yyyy} {name of copyright owner}
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/templates/nifi-log-example-core.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 43ed325d-0157-1000-2f44-860bfa6de01e
5 | nifi-log-example-core
6 |
7 |
8 | 92b57171-5a43-4f48-0000-000000000000
9 | 43ed325d-0157-1000-0000-000000000000
10 | 0 MB
11 | 0
12 |
13 | 43ed325d-0157-1000-0000-000000000000
14 | ef19ca34-7acb-44e0-0000-000000000000
15 | OUTPUT_PORT
16 |
17 | 0 sec
18 | 1
19 |
20 |
21 | 43ed325d-0157-1000-0000-000000000000
22 | ad7be96a-1b30-445d-0000-000000000000
23 | INPUT_PORT
24 |
25 | 0
26 |
27 |
28 | a11c9469-d801-4674-0000-000000000000
29 | 43ed325d-0157-1000-0000-000000000000
30 | 0 MB
31 | 0
32 |
33 | 307.84222412109375
34 | 216.62518310546875
35 |
36 |
37 | 43ed325d-0157-1000-0000-000000000000
38 | cb00ee1b-e0dd-41d2-0000-000000000000
39 | PROCESSOR
40 |
41 | 0 sec
42 | 1
43 |
44 |
45 | 43ed325d-0157-1000-0000-000000000000
46 | c7f08f5e-c265-4a4e-0000-000000000000
47 | INPUT_PORT
48 |
49 | 0
50 |
51 |
52 | ac65cf66-ad19-41f1-0000-000000000000
53 | 43ed325d-0157-1000-0000-000000000000
54 | 0 MB
55 | 0
56 |
57 | 1009.7857666015625
58 | 772.163330078125
59 |
60 |
61 | 43ed325d-0157-1000-0000-000000000000
62 | 75c4a77c-ead7-43cb-0000-000000000000
63 | PROCESSOR
64 |
65 | 0 sec
66 | 1
67 |
68 | failure
69 | not.found
70 | permission.denied
71 |
72 | 43ed325d-0157-1000-0000-000000000000
73 | d51aa9bf-f512-4d87-0000-000000000000
74 | PROCESSOR
75 |
76 | 0
77 |
78 |
79 | b182780a-5253-4a41-0000-000000000000
80 | 43ed325d-0157-1000-0000-000000000000
81 | 0 MB
82 | 0
83 |
84 | 1159.199462890625
85 | 484.36651611328125
86 |
87 |
88 | 43ed325d-0157-1000-0000-000000000000
89 | 14e4ca9e-5a64-48f6-0000-000000000000
90 | PROCESSOR
91 |
92 | 0 sec
93 | 1
94 |
95 | success
96 |
97 | 43ed325d-0157-1000-0000-000000000000
98 | d51aa9bf-f512-4d87-0000-000000000000
99 | PROCESSOR
100 |
101 | 0
102 |
103 |
104 | c90426c2-13cb-4d42-0000-000000000000
105 | 43ed325d-0157-1000-0000-000000000000
106 | 0 MB
107 | 0
108 |
109 | 700.9305419921875
110 | 209.60574340820312
111 |
112 |
113 | 43ed325d-0157-1000-0000-000000000000
114 | cd42ed85-22f6-4e59-0000-000000000000
115 | PROCESSOR
116 |
117 | 0 sec
118 | 1
119 |
120 | success
121 |
122 | 43ed325d-0157-1000-0000-000000000000
123 | cb00ee1b-e0dd-41d2-0000-000000000000
124 | PROCESSOR
125 |
126 | 0
127 |
128 |
129 | 0014d80a-3aa3-4f99-0000-000000000000
130 | 43ed325d-0157-1000-0000-000000000000
131 | 0 MB
132 | 0
133 |
134 | 402.10321044921875
135 | 483.36370849609375
136 |
137 |
138 | 43ed325d-0157-1000-0000-000000000000
139 | b0aaeb5b-3802-40c0-0000-000000000000
140 | PROCESSOR
141 |
142 | 0 sec
143 | 1
144 |
145 | success
146 |
147 | 43ed325d-0157-1000-0000-000000000000
148 | 1829fda9-74cb-4da6-0000-000000000000
149 | PROCESSOR
150 |
151 | 0
152 |
153 |
154 | 38a15f81-ff89-4459-0000-000000000000
155 | 43ed325d-0157-1000-0000-000000000000
156 | 0 MB
157 | 0
158 |
159 | 775.1361083984375
160 | 482.3609619140625
161 |
162 |
163 | 43ed325d-0157-1000-0000-000000000000
164 | d51aa9bf-f512-4d87-0000-000000000000
165 | PROCESSOR
166 |
167 | 0 sec
168 | 1
169 |
170 | success
171 |
172 | 43ed325d-0157-1000-0000-000000000000
173 | b0aaeb5b-3802-40c0-0000-000000000000
174 | PROCESSOR
175 |
176 | 0
177 |
178 |
179 | 78cabdc3-2087-4c98-0000-000000000000
180 | 43ed325d-0157-1000-0000-000000000000
181 | 0 MB
182 | 0
183 |
184 | 1091.0106201171875
185 | 208.60296630859375
186 |
187 |
188 | 43ed325d-0157-1000-0000-000000000000
189 | f041a5b0-7acb-4878-0000-000000000000
190 | PROCESSOR
191 |
192 | 0 sec
193 | 1
194 |
195 | success
196 |
197 | 43ed325d-0157-1000-0000-000000000000
198 | cd42ed85-22f6-4e59-0000-000000000000
199 | PROCESSOR
200 |
201 | 0
202 |
203 |
204 | 7f290e00-faae-43b1-0000-000000000000
205 | 43ed325d-0157-1000-0000-000000000000
206 | 0 MB
207 | 0
208 |
209 | 1230.3966064453125
210 | 211.61129760742188
211 |
212 |
213 | 1353.738037109375
214 | 211.61129760742188
215 |
216 |
217 | 43ed325d-0157-1000-0000-000000000000
218 | f041a5b0-7acb-4878-0000-000000000000
219 | PROCESSOR
220 |
221 | 0 sec
222 | 1
223 |
224 | failure
225 |
226 | 43ed325d-0157-1000-0000-000000000000
227 | f041a5b0-7acb-4878-0000-000000000000
228 | PROCESSOR
229 |
230 | 0
231 |
232 |
233 | dca410e1-47e4-4007-0000-000000000000
234 | 43ed325d-0157-1000-0000-000000000000
235 |
236 |
237 |
238 | Maximum Outstanding Requests
239 |
240 | Maximum Outstanding Requests
241 |
242 |
243 |
244 | Request Expiration
245 |
246 | Request Expiration
247 |
248 |
249 |
250 | StandardHttpContextMap
251 |
252 |
253 | Maximum Outstanding Requests
254 | 5000
255 |
256 |
257 | Request Expiration
258 | 1 min
259 |
260 |
261 | ENABLED
262 | org.apache.nifi.http.StandardHttpContextMap
263 |
264 |
265 | ad7be96a-1b30-445d-0000-000000000000
266 | 43ed325d-0157-1000-0000-000000000000
267 |
268 | 28.041540554984863
269 | 47.98286132246176
270 |
271 |
272 | 1
273 | Logs
274 | RUNNING
275 | false
276 | INPUT_PORT
277 |
278 |
279 | c7f08f5e-c265-4a4e-0000-000000000000
280 | 43ed325d-0157-1000-0000-000000000000
281 |
282 | 34.63479303604447
283 | 260.78864219605634
284 |
285 |
286 | 1
287 | New Dictionary
288 | RUNNING
289 | false
290 | INPUT_PORT
291 |
292 |
293 | 47c455bc-308c-4b7b-0000-000000000000
294 | 43ed325d-0157-1000-0000-000000000000
295 |
296 | 0.0
297 | 442.45595617695017
298 |
299 | 421.96282958984375
300 | Handle Request for Log Levels
301 |
311 | 1558.304443359375
312 |
313 |
314 | 62b47779-4160-47b7-0000-000000000000
315 | 43ed325d-0157-1000-0000-000000000000
316 |
317 | 3.065940906383389
318 | 0.0
319 |
320 | 144.0
321 | Receive Logs from Edge
322 |
332 | 1301.93408203125
333 |
334 |
335 | 6ff3a285-2a18-4faf-0000-000000000000
336 | 43ed325d-0157-1000-0000-000000000000
337 |
338 | 1.7602707304778278
339 | 175.8597139215227
340 |
341 | 234.3013153076172
342 | Receive Analytic Results
343 |
353 | 1490.3609619140625
354 |
355 |
356 | ef19ca34-7acb-44e0-0000-000000000000
357 | 43ed325d-0157-1000-0000-000000000000
358 |
359 | 590.6942626032601
360 | 48.98567113782104
361 |
362 |
363 | 1
364 | Logs for Analysis
365 | RUNNING
366 | false
367 | OUTPUT_PORT
368 |
369 |
370 | b0aaeb5b-3802-40c0-0000-000000000000
371 | 43ed325d-0157-1000-0000-000000000000
372 |
373 | 406.9875365683472
374 | 520.2482401464781
375 |
376 |
377 | WARN
378 |
379 | 1
380 |
381 |
382 | Delete Attributes Expression
383 |
384 | Delete Attributes Expression
385 |
386 |
387 |
388 | absolute.path
389 |
390 | absolute.path
391 |
392 |
393 |
394 | filename
395 |
396 | filename
397 |
398 |
399 |
400 | false
401 | 30 sec
402 |
403 |
404 | Delete Attributes Expression
405 |
406 |
407 | absolute.path
408 | ./data/dictionary
409 |
410 |
411 | filename
412 | levels.txt
413 |
414 |
415 | 0
416 | 0 sec
417 | TIMER_DRIVEN
418 | 1 sec
419 |
420 | Set 'filename' of Log Level Dictionary
421 |
422 | false
423 | success
424 |
425 |
426 | org.apache.nifi.processors.attributes.UpdateAttribute
427 |
428 |
429 | cb00ee1b-e0dd-41d2-0000-000000000000
430 | 43ed325d-0157-1000-0000-000000000000
431 |
432 | 323.2584227967866
433 | 248.92820677125167
434 |
435 |
436 | WARN
437 |
438 | 1
439 |
440 |
441 | Log Level
442 |
443 | Log Level
444 |
445 |
446 |
447 | Log Payload
448 |
449 | Log Payload
450 |
451 |
452 |
453 | Attributes to Log
454 |
455 | Attributes to Log
456 |
457 |
458 |
459 | Attributes to Ignore
460 |
461 | Attributes to Ignore
462 |
463 |
464 |
465 | Log prefix
466 |
467 | Log prefix
468 |
469 |
470 |
471 | false
472 | 30 sec
473 |
474 |
475 | Log Level
476 | info
477 |
478 |
479 | Log Payload
480 | true
481 |
482 |
483 | Attributes to Log
484 |
485 |
486 | Attributes to Ignore
487 |
488 |
489 | Log prefix
490 |
491 |
492 | 0
493 | 0 sec
494 | TIMER_DRIVEN
495 | 1 sec
496 |
497 | LogAttribute
498 |
499 | false
500 | success
501 |
502 |
503 | org.apache.nifi.processors.standard.LogAttribute
504 |
505 |
506 | cd42ed85-22f6-4e59-0000-000000000000
507 | 43ed325d-0157-1000-0000-000000000000
508 |
509 | 715.2995879804898
510 | 248.5622190498351
511 |
512 |
513 | WARN
514 |
515 | 1
516 |
517 |
518 | Delete Attributes Expression
519 |
520 | Delete Attributes Expression
521 |
522 |
523 |
524 | filename
525 |
526 | filename
527 |
528 |
529 |
530 | false
531 | 30 sec
532 |
533 |
534 | Delete Attributes Expression
535 |
536 |
537 | filename
538 | levels.txt
539 |
540 |
541 | 0
542 | 0 sec
543 | TIMER_DRIVEN
544 | 1 sec
545 |
546 | Set 'filename' to levels.txt
547 |
548 | false
549 | success
550 |
551 |
552 | org.apache.nifi.processors.attributes.UpdateAttribute
553 |
554 |
555 | d51aa9bf-f512-4d87-0000-000000000000
556 | 43ed325d-0157-1000-0000-000000000000
557 |
558 | 790.8332121709768
559 | 521.2509785473064
560 |
561 |
562 | WARN
563 |
564 | 1
565 |
566 |
567 | File to Fetch
568 |
569 | File to Fetch
570 |
571 |
572 |
573 | Completion Strategy
574 |
575 | Completion Strategy
576 |
577 |
578 |
579 | Move Destination Directory
580 |
581 | Move Destination Directory
582 |
583 |
584 |
585 | Move Conflict Strategy
586 |
587 | Move Conflict Strategy
588 |
589 |
590 |
591 | Log level when file not found
592 |
593 | Log level when file not found
594 |
595 |
596 |
597 | Log level when permission denied
598 |
599 | Log level when permission denied
600 |
601 |
602 |
603 | false
604 | 30 sec
605 |
606 |
607 | File to Fetch
608 | ${absolute.path}/${filename}
609 |
610 |
611 | Completion Strategy
612 | None
613 |
614 |
615 | Move Destination Directory
616 |
617 |
618 | Move Conflict Strategy
619 | Rename
620 |
621 |
622 | Log level when file not found
623 | ERROR
624 |
625 |
626 | Log level when permission denied
627 | ERROR
628 |
629 |
630 | 0
631 | 0 sec
632 | TIMER_DRIVEN
633 | 1 sec
634 |
635 | Fetch Log Level Dictionary
636 |
637 | false
638 | failure
639 |
640 |
641 | false
642 | not.found
643 |
644 |
645 | false
646 | permission.denied
647 |
648 |
649 | false
650 | success
651 |
652 |
653 | org.apache.nifi.processors.standard.FetchFile
654 |
655 |
656 | f041a5b0-7acb-4878-0000-000000000000
657 | 43ed325d-0157-1000-0000-000000000000
658 |
659 | 1105.46439494152
660 | 249.41203267769157
661 |
662 |
663 | WARN
664 |
665 | 1
666 |
667 |
668 | Directory
669 |
670 | Directory
671 |
672 |
673 |
674 | Conflict Resolution Strategy
675 |
676 | Conflict Resolution Strategy
677 |
678 |
679 |
680 | Create Missing Directories
681 |
682 | Create Missing Directories
683 |
684 |
685 |
686 | Maximum File Count
687 |
688 | Maximum File Count
689 |
690 |
691 |
692 | Last Modified Time
693 |
694 | Last Modified Time
695 |
696 |
697 |
698 | Permissions
699 |
700 | Permissions
701 |
702 |
703 |
704 | Owner
705 |
706 | Owner
707 |
708 |
709 |
710 | Group
711 |
712 | Group
713 |
714 |
715 |
716 | false
717 | 30 sec
718 |
719 |
720 | Directory
721 | ./data/dictionary
722 |
723 |
724 | Conflict Resolution Strategy
725 | replace
726 |
727 |
728 | Create Missing Directories
729 | true
730 |
731 |
732 | Maximum File Count
733 |
734 |
735 | Last Modified Time
736 |
737 |
738 | Permissions
739 |
740 |
741 | Owner
742 |
743 |
744 | Group
745 |
746 |
747 | 0
748 | 0 sec
749 | TIMER_DRIVEN
750 | 1 sec
751 |
752 | Store New Dictionary
753 |
754 | false
755 | failure
756 |
757 |
758 | true
759 | success
760 |
761 |
762 | org.apache.nifi.processors.standard.PutFile
763 |
764 |
765 | 14e4ca9e-5a64-48f6-0000-000000000000
766 | 43ed325d-0157-1000-0000-000000000000
767 |
768 | 1179.785372726245
769 | 522.3455194333854
770 |
771 |
772 | WARN
773 |
774 | 1
775 |
776 |
777 | HTTP Status Code
778 |
779 | HTTP Status Code
780 |
781 |
782 |
783 | HTTP Context Map
784 |
785 | org.apache.nifi.http.HttpContextMap
786 | HTTP Context Map
787 |
788 |
789 |
790 | false
791 | 30 sec
792 |
793 |
794 | HTTP Status Code
795 | 200
796 |
797 |
798 | HTTP Context Map
799 | dca410e1-47e4-4007-0000-000000000000
800 |
801 |
802 | 0
803 | 0 sec
804 | TIMER_DRIVEN
805 | 1 sec
806 |
807 | Success Response
808 |
809 | true
810 | failure
811 |
812 |
813 | true
814 | success
815 |
816 |
817 | org.apache.nifi.processors.standard.HandleHttpResponse
818 |
819 |
820 | 1829fda9-74cb-4da6-0000-000000000000
821 | 43ed325d-0157-1000-0000-000000000000
822 |
823 | 21.922476226466074
824 | 520.171485871072
825 |
826 |
827 | WARN
828 |
829 | 1
830 |
831 |
832 | Listening Port
833 |
834 | Listening Port
835 |
836 |
837 |
838 | Hostname
839 |
840 | Hostname
841 |
842 |
843 |
844 | SSL Context Service
845 |
846 | org.apache.nifi.ssl.SSLContextService
847 | SSL Context Service
848 |
849 |
850 |
851 | HTTP Context Map
852 |
853 | org.apache.nifi.http.HttpContextMap
854 | HTTP Context Map
855 |
856 |
857 |
858 | Allowed Paths
859 |
860 | Allowed Paths
861 |
862 |
863 |
864 | Default URL Character Set
865 |
866 | Default URL Character Set
867 |
868 |
869 |
870 | Allow GET
871 |
872 | Allow GET
873 |
874 |
875 |
876 | Allow POST
877 |
878 | Allow POST
879 |
880 |
881 |
882 | Allow PUT
883 |
884 | Allow PUT
885 |
886 |
887 |
888 | Allow DELETE
889 |
890 | Allow DELETE
891 |
892 |
893 |
894 | Allow HEAD
895 |
896 | Allow HEAD
897 |
898 |
899 |
900 | Allow OPTIONS
901 |
902 | Allow OPTIONS
903 |
904 |
905 |
906 | Additional HTTP Methods
907 |
908 | Additional HTTP Methods
909 |
910 |
911 |
912 | Client Authentication
913 |
914 | Client Authentication
915 |
916 |
917 |
918 | false
919 | 30 sec
920 |
921 |
922 | Listening Port
923 | 5188
924 |
925 |
926 | Hostname
927 |
928 |
929 |
930 | SSL Context Service
931 |
932 |
933 | HTTP Context Map
934 | dca410e1-47e4-4007-0000-000000000000
935 |
936 |
937 | Allowed Paths
938 | /dictionary
939 |
940 |
941 | Default URL Character Set
942 | UTF-8
943 |
944 |
945 | Allow GET
946 | true
947 |
948 |
949 | Allow POST
950 | false
951 |
952 |
953 | Allow PUT
954 | false
955 |
956 |
957 | Allow DELETE
958 | false
959 |
960 |
961 | Allow HEAD
962 | false
963 |
964 |
965 | Allow OPTIONS
966 | false
967 |
968 |
969 | Additional HTTP Methods
970 |
971 |
972 | Client Authentication
973 | No Authentication
974 |
975 |
976 | 0
977 | 0 sec
978 | TIMER_DRIVEN
979 | 1 sec
980 |
981 | /dictionary
982 |
983 | false
984 | success
985 |
986 |
987 | org.apache.nifi.processors.standard.HandleHttpRequest
988 |
989 |
990 | 75c4a77c-ead7-43cb-0000-000000000000
991 | 43ed325d-0157-1000-0000-000000000000
992 |
993 | 1180.7544309504874
994 | 709.609808347763
995 |
996 |
997 | WARN
998 |
999 | 1
1000 |
1001 |
1002 | HTTP Status Code
1003 |
1004 | HTTP Status Code
1005 |
1006 |
1007 |
1008 | HTTP Context Map
1009 |
1010 | org.apache.nifi.http.HttpContextMap
1011 | HTTP Context Map
1012 |
1013 |
1014 |
1015 | false
1016 | 30 sec
1017 |
1018 |
1019 | HTTP Status Code
1020 | 500
1021 |
1022 |
1023 | HTTP Context Map
1024 | dca410e1-47e4-4007-0000-000000000000
1025 |
1026 |
1027 | 0
1028 | 0 sec
1029 | TIMER_DRIVEN
1030 | 1 sec
1031 |
1032 | Error Response
1033 |
1034 | true
1035 | failure
1036 |
1037 |
1038 | true
1039 | success
1040 |
1041 |
1042 | org.apache.nifi.processors.standard.HandleHttpResponse
1043 |
1044 |
1045 | 09/19/2016 16:05:26 EDT
1046 |
--------------------------------------------------------------------------------
/templates/nifi-log-example-edge.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 43ed3e33-0157-1000-c912-f267a83ebbe4
5 | nifi-log-example-edge
6 |
7 |
8 | e1bddb68-6f2b-4969-0000-000000000000
9 | 43ed3e33-0157-1000-0000-000000000000
10 | 0 MB
11 | 0
12 |
13 | 791.9998626708984
14 | 38.0
15 |
16 |
17 | 43ed3e33-0157-1000-0000-000000000000
18 | 2e6958e0-40f9-4036-0000-000000000000
19 | PROCESSOR
20 |
21 | 0 sec
22 | 1
23 |
24 | splits
25 |
26 | 43ed3e33-0157-1000-0000-000000000000
27 | b954c7de-6618-4f07-0000-000000000000
28 | PROCESSOR
29 |
30 | 0
31 |
32 |
33 | ed590b41-5c08-4042-0000-000000000000
34 | 43ed3e33-0157-1000-0000-000000000000
35 | 0 MB
36 | 0
37 |
38 | 1168.9998626708984
39 | 39.0
40 |
41 |
42 | 43ed3e33-0157-1000-0000-000000000000
43 | be914455-805c-4d55-0000-000000000000
44 | PROCESSOR
45 |
46 | 0 sec
47 | 1
48 |
49 | matched
50 |
51 | 43ed3e33-0157-1000-0000-000000000000
52 | 2e6958e0-40f9-4036-0000-000000000000
53 | PROCESSOR
54 |
55 | 0
56 |
57 |
58 | 3ef7daaa-de84-4459-0000-000000000000
59 | 43ed3e33-0157-1000-0000-000000000000
60 | 0 MB
61 | 0
62 |
63 | 416.99986267089844
64 | 37.0
65 |
66 |
67 | 43ed3e33-0157-1000-0000-000000000000
68 | b954c7de-6618-4f07-0000-000000000000
69 | PROCESSOR
70 |
71 | 0 sec
72 | 1
73 |
74 | success
75 |
76 | 43ed3e33-0157-1000-0000-000000000000
77 | 843e7994-a92a-4957-0000-000000000000
78 | PROCESSOR
79 |
80 | 0
81 |
82 |
83 | 43fee3b0-0157-1000-0000-000000000000
84 | 43ed3e33-0157-1000-0000-000000000000
85 | 1 GB
86 | 10000
87 |
88 | 6c207299-ce4c-48fd-0000-000000000000
89 | ad7be96a-1b30-445d-96a3-1d08bcdbc923
90 | REMOTE_INPUT_PORT
91 |
92 | 0 sec
93 | 1
94 |
95 | matched
96 |
97 | 43ed3e33-0157-1000-0000-000000000000
98 | be914455-805c-4d55-0000-000000000000
99 | PROCESSOR
100 |
101 | 0
102 |
103 |
104 | 44056535-0157-1000-0000-000000000000
105 | 43ed3e33-0157-1000-0000-000000000000
106 | 1 GB
107 | 10000
108 |
109 | 6c207299-ce4c-48fd-0000-000000000000
110 | ad7be96a-1b30-445d-96a3-1d08bcdbc923
111 | REMOTE_INPUT_PORT
112 |
113 | 0 sec
114 | 1
115 |
116 |
117 | f364c454-0a15-42f8-0000-000000000000
118 | d479354a-a8ec-411a-0000-000000000000
119 | OUTPUT_PORT
120 |
121 | 0
122 |
123 |
124 | 51ffa568-44ee-443a-0000-000000000000
125 | 43ed3e33-0157-1000-0000-000000000000
126 | 0 MB
127 | 0
128 |
129 | 43ed3e33-0157-1000-0000-000000000000
130 | d939cfaf-e20a-4d31-0000-000000000000
131 | PROCESSOR
132 |
133 | 0 sec
134 | 1
135 |
136 | success
137 |
138 | 43ed3e33-0157-1000-0000-000000000000
139 | dcbeb669-48e7-4e90-0000-000000000000
140 | PROCESSOR
141 |
142 | 0
143 |
144 |
145 | fbff006b-bf69-4474-0000-000000000000
146 | 43ed3e33-0157-1000-0000-000000000000
147 |
148 | 0.9998626708984375
149 | 515.0400204467774
150 |
151 | 201.9599609375
152 | Pull New Log Level Dictionary
153 |
159 | 1030.0
160 |
161 |
162 | 17c4438d-6bb6-4ee1-0000-000000000000
163 | 43ed3e33-0157-1000-0000-000000000000
164 |
165 | 0.0
166 | 0.0
167 |
168 | 485.0
169 | Send Logs to Core
170 |
180 | 1577.9998779296875
181 |
182 |
183 | f364c454-0a15-42f8-0000-000000000000
184 | 43ed3e33-0157-1000-0000-000000000000
185 |
186 | 44.44992218017569
187 | 291.51989776611333
188 |
189 |
190 |
191 |
192 | 805e9213-fc18-485a-0000-000000000000
193 | f364c454-0a15-42f8-0000-000000000000
194 | 0 MB
195 | 0
196 |
197 | f364c454-0a15-42f8-0000-000000000000
198 | d479354a-a8ec-411a-0000-000000000000
199 | OUTPUT_PORT
200 |
201 | 0 sec
202 | 1
203 |
204 | success
205 |
206 | f364c454-0a15-42f8-0000-000000000000
207 | d1b99d68-4864-4424-0000-000000000000
208 | PROCESSOR
209 |
210 | 0
211 |
212 |
213 | a639879b-cf8c-4580-0000-000000000000
214 | f364c454-0a15-42f8-0000-000000000000
215 | 0 MB
216 | 0
217 |
218 | f364c454-0a15-42f8-0000-000000000000
219 | 9a5f390a-8e35-4da1-0000-000000000000
220 | PROCESSOR
221 |
222 | 0 sec
223 | 1
224 |
225 | success
226 |
227 | f364c454-0a15-42f8-0000-000000000000
228 | 37c6e71e-9353-40c3-0000-000000000000
229 | PROCESSOR
230 |
231 | 0
232 |
233 |
234 | abe0b241-b215-44be-0000-000000000000
235 | f364c454-0a15-42f8-0000-000000000000
236 | 0 MB
237 | 0
238 |
239 | f364c454-0a15-42f8-0000-000000000000
240 | e95479fa-3007-4c8e-0000-000000000000
241 | PROCESSOR
242 |
243 | 0 sec
244 | 1
245 |
246 | success
247 |
248 | f364c454-0a15-42f8-0000-000000000000
249 | 9a5f390a-8e35-4da1-0000-000000000000
250 | PROCESSOR
251 |
252 | 0
253 |
254 |
255 | d5522c93-b3db-480c-0000-000000000000
256 | f364c454-0a15-42f8-0000-000000000000
257 | 0 MB
258 | 0
259 |
260 | f364c454-0a15-42f8-0000-000000000000
261 | b21877e0-46d2-4a65-0000-000000000000
262 | PROCESSOR
263 |
264 | 0 sec
265 | 1
266 |
267 | success
268 |
269 | f364c454-0a15-42f8-0000-000000000000
270 | de0a96cb-0689-4b0a-0000-000000000000
271 | PROCESSOR
272 |
273 | 0
274 |
275 |
276 | db0c250f-638e-4ad2-0000-000000000000
277 | f364c454-0a15-42f8-0000-000000000000
278 | 0 MB
279 | 0
280 |
281 | f364c454-0a15-42f8-0000-000000000000
282 | d1b99d68-4864-4424-0000-000000000000
283 | PROCESSOR
284 |
285 | 0 sec
286 | 1
287 |
288 | success
289 |
290 | f364c454-0a15-42f8-0000-000000000000
291 | 612b238b-844e-41f8-0000-000000000000
292 | PROCESSOR
293 |
294 | 0
295 |
296 |
297 | fb15ce63-ff75-4b5f-0000-000000000000
298 | f364c454-0a15-42f8-0000-000000000000
299 | 0 MB
300 | 0
301 |
302 | 1846.6497802734375
303 | 1049.22
304 |
305 |
306 | f364c454-0a15-42f8-0000-000000000000
307 | d479354a-a8ec-411a-0000-000000000000
308 | OUTPUT_PORT
309 |
310 | 0 sec
311 | 1
312 |
313 | success
314 |
315 | f364c454-0a15-42f8-0000-000000000000
316 | e95479fa-3007-4c8e-0000-000000000000
317 | PROCESSOR
318 |
319 | 0
320 |
321 |
322 | fdd164b4-cd1a-4bd0-0000-000000000000
323 | f364c454-0a15-42f8-0000-000000000000
324 | 0 MB
325 | 0
326 |
327 | 732.4498443603516
328 | 1058.868016357422
329 |
330 |
331 | f364c454-0a15-42f8-0000-000000000000
332 | d479354a-a8ec-411a-0000-000000000000
333 | OUTPUT_PORT
334 |
335 | 0 sec
336 | 1
337 |
338 | success
339 |
340 | f364c454-0a15-42f8-0000-000000000000
341 | b21877e0-46d2-4a65-0000-000000000000
342 | PROCESSOR
343 |
344 | 0
345 |
346 |
347 | 383f58c2-748f-47a6-0000-000000000000
348 | f364c454-0a15-42f8-0000-000000000000
349 | 0 MB
350 | 0
351 |
352 | f364c454-0a15-42f8-0000-000000000000
353 | 612b238b-844e-41f8-0000-000000000000
354 | PROCESSOR
355 |
356 | 0 sec
357 | 1
358 |
359 | success
360 |
361 | f364c454-0a15-42f8-0000-000000000000
362 | 8deafbf2-5c1d-444f-0000-000000000000
363 | PROCESSOR
364 |
365 | 0
366 |
367 |
368 | 642ab0b7-ec65-4477-0000-000000000000
369 | f364c454-0a15-42f8-0000-000000000000
370 | 0 MB
371 | 0
372 |
373 | f364c454-0a15-42f8-0000-000000000000
374 | de0a96cb-0689-4b0a-0000-000000000000
375 | PROCESSOR
376 |
377 | 0 sec
378 | 1
379 |
380 | success
381 |
382 | f364c454-0a15-42f8-0000-000000000000
383 | 086da145-5496-4ed7-0000-000000000000
384 | PROCESSOR
385 |
386 | 0
387 |
388 |
389 | d479354a-a8ec-411a-0000-000000000000
390 | f364c454-0a15-42f8-0000-000000000000
391 |
392 | 1169.8499267578125
393 | 1126.4040654296875
394 |
395 |
396 | 1
397 | Logs
398 | STOPPED
399 | OUTPUT_PORT
400 |
401 |
402 | 8deafbf2-5c1d-444f-0000-000000000000
403 | f364c454-0a15-42f8-0000-000000000000
404 |
405 | 1047.8998718261719
406 | 384.04400817871095
407 |
408 |
409 | WARN
410 |
411 | 1
412 |
413 |
414 | File Size
415 |
416 | File Size
417 |
418 |
419 |
420 | Batch Size
421 |
422 | Batch Size
423 |
424 |
425 |
426 | Data Format
427 |
428 | Data Format
429 |
430 |
431 |
432 | Unique FlowFiles
433 |
434 | Unique FlowFiles
435 |
436 |
437 |
438 | false
439 | 30 sec
440 |
441 |
442 | File Size
443 | 1 kb
444 |
445 |
446 | Batch Size
447 | 1
448 |
449 |
450 | Data Format
451 | Binary
452 |
453 |
454 | Unique FlowFiles
455 | false
456 |
457 |
458 | 0
459 | 500 ms
460 | TIMER_DRIVEN
461 | 1 sec
462 |
463 | GenerateFlowFile
464 |
465 | false
466 | success
467 |
468 |
469 | org.apache.nifi.processors.standard.GenerateFlowFile
470 |
471 |
472 | 9a5f390a-8e35-4da1-0000-000000000000
473 | f364c454-0a15-42f8-0000-000000000000
474 |
475 | 1616.3998718261719
476 | 607.824008178711
477 |
478 |
479 | WARN
480 |
481 | 1
482 |
483 |
484 | Regular Expression
485 |
486 | Regular Expression
487 |
488 |
489 |
490 | Replacement Value
491 |
492 | Replacement Value
493 |
494 |
495 |
496 | Character Set
497 |
498 | Character Set
499 |
500 |
501 |
502 | Maximum Buffer Size
503 |
504 | Maximum Buffer Size
505 |
506 |
507 |
508 | Replacement Strategy
509 |
510 | Replacement Strategy
511 |
512 |
513 |
514 | Evaluation Mode
515 |
516 | Evaluation Mode
517 |
518 |
519 |
520 | false
521 | 30 sec
522 |
523 |
524 | Regular Expression
525 | (?s:^.*$)
526 |
527 |
528 | Replacement Value
529 | This is a test message ${now()}
530 |
531 |
532 | Character Set
533 | UTF-8
534 |
535 |
536 | Maximum Buffer Size
537 | 1 MB
538 |
539 |
540 | Replacement Strategy
541 | Regex Replace
542 |
543 |
544 | Evaluation Mode
545 | Entire text
546 |
547 |
548 | 0
549 | 0 sec
550 | TIMER_DRIVEN
551 | 1 sec
552 |
553 | ReplaceText
554 |
555 | true
556 | failure
557 |
558 |
559 | false
560 | success
561 |
562 |
563 | org.apache.nifi.processors.standard.ReplaceText
564 |
565 |
566 | b21877e0-46d2-4a65-0000-000000000000
567 | f364c454-0a15-42f8-0000-000000000000
568 |
569 | 498.8998718261719
570 | 843.664008178711
571 |
572 |
573 | WARN
574 |
575 | 1
576 |
577 |
578 | Delete Attributes Expression
579 |
580 | Delete Attributes Expression
581 |
582 |
583 |
584 | log.level
585 |
586 | log.level
587 |
588 |
589 |
590 | false
591 | 30 sec
592 |
593 |
594 | Delete Attributes Expression
595 |
596 |
597 | log.level
598 | INFO
599 |
600 |
601 | 0
602 | 0 sec
603 | TIMER_DRIVEN
604 | 1 sec
605 |
606 | Set INFO
607 |
608 | false
609 | success
610 |
611 |
612 | org.apache.nifi.processors.attributes.UpdateAttribute
613 |
614 |
615 | d1b99d68-4864-4424-0000-000000000000
616 | f364c454-0a15-42f8-0000-000000000000
617 |
618 | 1053.8998718261719
619 | 842.324008178711
620 |
621 |
622 | WARN
623 |
624 | 1
625 |
626 |
627 | Delete Attributes Expression
628 |
629 | Delete Attributes Expression
630 |
631 |
632 |
633 | log.level
634 |
635 | log.level
636 |
637 |
638 |
639 | false
640 | 30 sec
641 |
642 |
643 | Delete Attributes Expression
644 |
645 |
646 | log.level
647 | ERROR
648 |
649 |
650 | 0
651 | 0 sec
652 | TIMER_DRIVEN
653 | 1 sec
654 |
655 | Set ERROR
656 |
657 | false
658 | success
659 |
660 |
661 | org.apache.nifi.processors.attributes.UpdateAttribute
662 |
663 |
664 | de0a96cb-0689-4b0a-0000-000000000000
665 | f364c454-0a15-42f8-0000-000000000000
666 |
667 | 497.3998718261719
668 | 609.164008178711
669 |
670 |
671 | WARN
672 |
673 | 1
674 |
675 |
676 | Regular Expression
677 |
678 | Regular Expression
679 |
680 |
681 |
682 | Replacement Value
683 |
684 | Replacement Value
685 |
686 |
687 |
688 | Character Set
689 |
690 | Character Set
691 |
692 |
693 |
694 | Maximum Buffer Size
695 |
696 | Maximum Buffer Size
697 |
698 |
699 |
700 | Replacement Strategy
701 |
702 | Replacement Strategy
703 |
704 |
705 |
706 | Evaluation Mode
707 |
708 | Evaluation Mode
709 |
710 |
711 |
712 | false
713 | 30 sec
714 |
715 |
716 | Regular Expression
717 | (?s:^.*$)
718 |
719 |
720 | Replacement Value
721 | This is a test message ${now()}
722 |
723 |
724 | Character Set
725 | UTF-8
726 |
727 |
728 | Maximum Buffer Size
729 | 1 MB
730 |
731 |
732 | Replacement Strategy
733 | Regex Replace
734 |
735 |
736 | Evaluation Mode
737 | Entire text
738 |
739 |
740 | 0
741 | 0 sec
742 | TIMER_DRIVEN
743 | 1 sec
744 |
745 | ReplaceText
746 |
747 | true
748 | failure
749 |
750 |
751 | false
752 | success
753 |
754 |
755 | org.apache.nifi.processors.standard.ReplaceText
756 |
757 |
758 | e95479fa-3007-4c8e-0000-000000000000
759 | f364c454-0a15-42f8-0000-000000000000
760 |
761 | 1617.8998718261719
762 | 842.324008178711
763 |
764 |
765 | WARN
766 |
767 | 1
768 |
769 |
770 | Delete Attributes Expression
771 |
772 | Delete Attributes Expression
773 |
774 |
775 |
776 | log.level
777 |
778 | log.level
779 |
780 |
781 |
782 | false
783 | 30 sec
784 |
785 |
786 | Delete Attributes Expression
787 |
788 |
789 | log.level
790 | WARN
791 |
792 |
793 | 0
794 | 0 sec
795 | TIMER_DRIVEN
796 | 1 sec
797 |
798 | Set WARN
799 |
800 | false
801 | success
802 |
803 |
804 | org.apache.nifi.processors.attributes.UpdateAttribute
805 |
806 |
807 | 086da145-5496-4ed7-0000-000000000000
808 | f364c454-0a15-42f8-0000-000000000000
809 |
810 | 492.8998718261719
811 | 385.384008178711
812 |
813 |
814 | WARN
815 |
816 | 1
817 |
818 |
819 | File Size
820 |
821 | File Size
822 |
823 |
824 |
825 | Batch Size
826 |
827 | Batch Size
828 |
829 |
830 |
831 | Data Format
832 |
833 | Data Format
834 |
835 |
836 |
837 | Unique FlowFiles
838 |
839 | Unique FlowFiles
840 |
841 |
842 |
843 | false
844 | 30 sec
845 |
846 |
847 | File Size
848 | 1 kb
849 |
850 |
851 | Batch Size
852 | 1
853 |
854 |
855 | Data Format
856 | Binary
857 |
858 |
859 | Unique FlowFiles
860 | false
861 |
862 |
863 | 0
864 | 3 sec
865 | TIMER_DRIVEN
866 | 1 sec
867 |
868 | GenerateFlowFile
869 |
870 | false
871 | success
872 |
873 |
874 | org.apache.nifi.processors.standard.GenerateFlowFile
875 |
876 |
877 | 37c6e71e-9353-40c3-0000-000000000000
878 | f364c454-0a15-42f8-0000-000000000000
879 |
880 | 1611.8998718261719
881 | 384.04400817871095
882 |
883 |
884 | WARN
885 |
886 | 1
887 |
888 |
889 | File Size
890 |
891 | File Size
892 |
893 |
894 |
895 | Batch Size
896 |
897 | Batch Size
898 |
899 |
900 |
901 | Data Format
902 |
903 | Data Format
904 |
905 |
906 |
907 | Unique FlowFiles
908 |
909 | Unique FlowFiles
910 |
911 |
912 |
913 | false
914 | 30 sec
915 |
916 |
917 | File Size
918 | 1 kb
919 |
920 |
921 | Batch Size
922 | 1
923 |
924 |
925 | Data Format
926 | Binary
927 |
928 |
929 | Unique FlowFiles
930 | false
931 |
932 |
933 | 0
934 | 500 ms
935 | TIMER_DRIVEN
936 | 1 sec
937 |
938 | GenerateFlowFile
939 |
940 | false
941 | success
942 |
943 |
944 | org.apache.nifi.processors.standard.GenerateFlowFile
945 |
946 |
947 | 612b238b-844e-41f8-0000-000000000000
948 | f364c454-0a15-42f8-0000-000000000000
949 |
950 | 1052.3998718261719
951 | 607.824008178711
952 |
953 |
954 | WARN
955 |
956 | 1
957 |
958 |
959 | Regular Expression
960 |
961 | Regular Expression
962 |
963 |
964 |
965 | Replacement Value
966 |
967 | Replacement Value
968 |
969 |
970 |
971 | Character Set
972 |
973 | Character Set
974 |
975 |
976 |
977 | Maximum Buffer Size
978 |
979 | Maximum Buffer Size
980 |
981 |
982 |
983 | Replacement Strategy
984 |
985 | Replacement Strategy
986 |
987 |
988 |
989 | Evaluation Mode
990 |
991 | Evaluation Mode
992 |
993 |
994 |
995 | false
996 | 30 sec
997 |
998 |
999 | Regular Expression
1000 | (?s:^.*$)
1001 |
1002 |
1003 | Replacement Value
1004 | This is a test message ${now()}
1005 |
1006 |
1007 | Character Set
1008 | UTF-8
1009 |
1010 |
1011 | Maximum Buffer Size
1012 | 1 MB
1013 |
1014 |
1015 | Replacement Strategy
1016 | Regex Replace
1017 |
1018 |
1019 | Evaluation Mode
1020 | Entire text
1021 |
1022 |
1023 | 0
1024 | 0 sec
1025 | TIMER_DRIVEN
1026 | 1 sec
1027 |
1028 | ReplaceText
1029 |
1030 | true
1031 | failure
1032 |
1033 |
1034 | false
1035 | success
1036 |
1037 |
1038 | org.apache.nifi.processors.standard.ReplaceText
1039 |
1040 |
1041 | Generate Test Logs
1042 |
1043 |
1044 | 843e7994-a92a-4957-0000-000000000000
1045 | 43ed3e33-0157-1000-0000-000000000000
1046 |
1047 | 48.44997253417978
1048 | 86.42400408935544
1049 |
1050 |
1051 | WARN
1052 |
1053 | 1
1054 |
1055 |
1056 | File to Tail
1057 |
1058 | File to Tail
1059 |
1060 |
1061 |
1062 | Rolling Filename Pattern
1063 |
1064 | Rolling Filename Pattern
1065 |
1066 |
1067 |
1068 | Initial Start Position
1069 |
1070 | Initial Start Position
1071 |
1072 |
1073 |
1074 | File Location
1075 |
1076 | File Location
1077 |
1078 |
1079 |
1080 | false
1081 | 30 sec
1082 |
1083 |
1084 | File to Tail
1085 | ./logs/nifi-app.log
1086 |
1087 |
1088 | Rolling Filename Pattern
1089 |
1090 |
1091 | Initial Start Position
1092 | Beginning of File
1093 |
1094 |
1095 | File Location
1096 | Local
1097 |
1098 |
1099 | 0
1100 | 1 sec
1101 | TIMER_DRIVEN
1102 | 1 sec
1103 |
1104 | Tail Log File
1105 |
1106 | false
1107 | success
1108 |
1109 |
1110 | org.apache.nifi.processors.standard.TailFile
1111 |
1112 |
1113 | b954c7de-6618-4f07-0000-000000000000
1114 | 43ed3e33-0157-1000-0000-000000000000
1115 |
1116 | 431.4499725341798
1117 | 87.0840040893554
1118 |
1119 |
1120 | WARN
1121 |
1122 | 1
1123 |
1124 |
1125 | Line Split Count
1126 |
1127 | Line Split Count
1128 |
1129 |
1130 |
1131 | Maximum Fragment Size
1132 |
1133 | Maximum Fragment Size
1134 |
1135 |
1136 |
1137 | Header Line Count
1138 |
1139 | Header Line Count
1140 |
1141 |
1142 |
1143 | Header Line Marker Characters
1144 |
1145 | Header Line Marker Characters
1146 |
1147 |
1148 |
1149 | Remove Trailing Newlines
1150 |
1151 | Remove Trailing Newlines
1152 |
1153 |
1154 |
1155 | false
1156 | 30 sec
1157 |
1158 |
1159 | Line Split Count
1160 | 1
1161 |
1162 |
1163 | Maximum Fragment Size
1164 |
1165 |
1166 | Header Line Count
1167 | 0
1168 |
1169 |
1170 | Header Line Marker Characters
1171 |
1172 |
1173 | Remove Trailing Newlines
1174 | true
1175 |
1176 |
1177 | 0
1178 | 0 sec
1179 | TIMER_DRIVEN
1180 | 1 sec
1181 |
1182 | Split Lines
1183 |
1184 | true
1185 | failure
1186 |
1187 |
1188 | true
1189 | original
1190 |
1191 |
1192 | false
1193 | splits
1194 |
1195 |
1196 | org.apache.nifi.processors.standard.SplitText
1197 |
1198 |
1199 | be914455-805c-4d55-0000-000000000000
1200 | 43ed3e33-0157-1000-0000-000000000000
1201 |
1202 | 1184.8000183105469
1203 | 87.0319877319335
1204 |
1205 |
1206 | WARN
1207 |
1208 | 1
1209 |
1210 |
1211 | Dictionary File
1212 |
1213 | Dictionary File
1214 |
1215 |
1216 |
1217 | Attribute Pattern
1218 |
1219 | Attribute Pattern
1220 |
1221 |
1222 |
1223 | Match Criteria
1224 |
1225 | Match Criteria
1226 |
1227 |
1228 |
1229 | Dictionary Filter Pattern
1230 |
1231 | Dictionary Filter Pattern
1232 |
1233 |
1234 |
1235 | false
1236 | 30 sec
1237 |
1238 |
1239 | Dictionary File
1240 | ./data/dictionary/levels.txt
1241 |
1242 |
1243 | Attribute Pattern
1244 | log\.level.*
1245 |
1246 |
1247 | Match Criteria
1248 | At Least 1 Must Match
1249 |
1250 |
1251 | Dictionary Filter Pattern
1252 |
1253 |
1254 | 0
1255 | 0 sec
1256 | TIMER_DRIVEN
1257 | 1 sec
1258 |
1259 | Filter Log Level
1260 |
1261 | false
1262 | matched
1263 |
1264 |
1265 | true
1266 | unmatched
1267 |
1268 |
1269 | org.apache.nifi.processors.standard.ScanAttribute
1270 |
1271 |
1272 | d939cfaf-e20a-4d31-0000-000000000000
1273 | 43ed3e33-0157-1000-0000-000000000000
1274 |
1275 | 649.6499084472657
1276 | 558.6919386596679
1277 |
1278 |
1279 | WARN
1280 |
1281 | 1
1282 |
1283 |
1284 | Directory
1285 |
1286 | Directory
1287 |
1288 |
1289 |
1290 | Conflict Resolution Strategy
1291 |
1292 | Conflict Resolution Strategy
1293 |
1294 |
1295 |
1296 | Create Missing Directories
1297 |
1298 | Create Missing Directories
1299 |
1300 |
1301 |
1302 | Maximum File Count
1303 |
1304 | Maximum File Count
1305 |
1306 |
1307 |
1308 | Last Modified Time
1309 |
1310 | Last Modified Time
1311 |
1312 |
1313 |
1314 | Permissions
1315 |
1316 | Permissions
1317 |
1318 |
1319 |
1320 | Owner
1321 |
1322 | Owner
1323 |
1324 |
1325 |
1326 | Group
1327 |
1328 | Group
1329 |
1330 |
1331 |
1332 | false
1333 | 30 sec
1334 |
1335 |
1336 | Directory
1337 | ./data/dictionary
1338 |
1339 |
1340 | Conflict Resolution Strategy
1341 | replace
1342 |
1343 |
1344 | Create Missing Directories
1345 | true
1346 |
1347 |
1348 | Maximum File Count
1349 |
1350 |
1351 | Last Modified Time
1352 |
1353 |
1354 | Permissions
1355 |
1356 |
1357 | Owner
1358 |
1359 |
1360 | Group
1361 |
1362 |
1363 | 0
1364 | 0 sec
1365 | TIMER_DRIVEN
1366 | 1 sec
1367 |
1368 | Store ./data/dictionary/levels.txt
1369 |
1370 | true
1371 | failure
1372 |
1373 |
1374 | true
1375 | success
1376 |
1377 |
1378 | org.apache.nifi.processors.standard.PutFile
1379 |
1380 |
1381 | dcbeb669-48e7-4e90-0000-000000000000
1382 | 43ed3e33-0157-1000-0000-000000000000
1383 |
1384 | 31.149908447265716
1385 | 556.031938659668
1386 |
1387 |
1388 | WARN
1389 |
1390 | 1
1391 |
1392 |
1393 | URL
1394 |
1395 | URL
1396 |
1397 |
1398 |
1399 | Filename
1400 |
1401 | Filename
1402 |
1403 |
1404 |
1405 | SSL Context Service
1406 |
1407 | org.apache.nifi.ssl.SSLContextService
1408 | SSL Context Service
1409 |
1410 |
1411 |
1412 | Username
1413 |
1414 | Username
1415 |
1416 |
1417 |
1418 | Password
1419 |
1420 | Password
1421 |
1422 |
1423 |
1424 | Connection Timeout
1425 |
1426 | Connection Timeout
1427 |
1428 |
1429 |
1430 | Data Timeout
1431 |
1432 | Data Timeout
1433 |
1434 |
1435 |
1436 | User Agent
1437 |
1438 | User Agent
1439 |
1440 |
1441 |
1442 | Accept Content-Type
1443 |
1444 | Accept Content-Type
1445 |
1446 |
1447 |
1448 | Follow Redirects
1449 |
1450 | Follow Redirects
1451 |
1452 |
1453 |
1454 | redirect-cookie-policy
1455 |
1456 | redirect-cookie-policy
1457 |
1458 |
1459 |
1460 | Proxy Host
1461 |
1462 | Proxy Host
1463 |
1464 |
1465 |
1466 | Proxy Port
1467 |
1468 | Proxy Port
1469 |
1470 |
1471 |
1472 | false
1473 | 30 sec
1474 |
1475 |
1476 | URL
1477 | http://localhost:5188/dictionary
1478 |
1479 |
1480 | Filename
1481 | levels.txt
1482 |
1483 |
1484 | SSL Context Service
1485 |
1486 |
1487 | Username
1488 |
1489 |
1490 | Password
1491 |
1492 |
1493 | Connection Timeout
1494 | 30 sec
1495 |
1496 |
1497 | Data Timeout
1498 | 30 sec
1499 |
1500 |
1501 | User Agent
1502 |
1503 |
1504 | Accept Content-Type
1505 |
1506 |
1507 | Follow Redirects
1508 | false
1509 |
1510 |
1511 | redirect-cookie-policy
1512 | default
1513 |
1514 |
1515 | Proxy Host
1516 |
1517 |
1518 | Proxy Port
1519 |
1520 |
1521 | 0
1522 | 30 sec
1523 | TIMER_DRIVEN
1524 | 1 sec
1525 |
1526 | http://localhost:5188/dictionary
1527 |
1528 | false
1529 | success
1530 |
1531 |
1532 | org.apache.nifi.processors.standard.GetHTTP
1533 |
1534 |
1535 | 2e6958e0-40f9-4036-0000-000000000000
1536 | 43ed3e33-0157-1000-0000-000000000000
1537 |
1538 | 804.4001281738283
1539 | 86.03201226806638
1540 |
1541 |
1542 | WARN
1543 |
1544 | 1
1545 |
1546 |
1547 | Character Set
1548 |
1549 | Character Set
1550 |
1551 |
1552 |
1553 | Maximum Buffer Size
1554 |
1555 | Maximum Buffer Size
1556 |
1557 |
1558 |
1559 | Maximum Capture Group Length
1560 |
1561 | Maximum Capture Group Length
1562 |
1563 |
1564 |
1565 | Enable Canonical Equivalence
1566 |
1567 | Enable Canonical Equivalence
1568 |
1569 |
1570 |
1571 | Enable Case-insensitive Matching
1572 |
1573 | Enable Case-insensitive Matching
1574 |
1575 |
1576 |
1577 | Permit Whitespace and Comments in Pattern
1578 |
1579 | Permit Whitespace and Comments in Pattern
1580 |
1581 |
1582 |
1583 | Enable DOTALL Mode
1584 |
1585 | Enable DOTALL Mode
1586 |
1587 |
1588 |
1589 | Enable Literal Parsing of the Pattern
1590 |
1591 | Enable Literal Parsing of the Pattern
1592 |
1593 |
1594 |
1595 | Enable Multiline Mode
1596 |
1597 | Enable Multiline Mode
1598 |
1599 |
1600 |
1601 | Enable Unicode-aware Case Folding
1602 |
1603 | Enable Unicode-aware Case Folding
1604 |
1605 |
1606 |
1607 | Enable Unicode Predefined Character Classes
1608 |
1609 | Enable Unicode Predefined Character Classes
1610 |
1611 |
1612 |
1613 | Enable Unix Lines Mode
1614 |
1615 | Enable Unix Lines Mode
1616 |
1617 |
1618 |
1619 | Include Capture Group 0
1620 |
1621 | Include Capture Group 0
1622 |
1623 |
1624 |
1625 | log.level
1626 |
1627 | log.level
1628 |
1629 |
1630 |
1631 | false
1632 | 30 sec
1633 |
1634 |
1635 | Character Set
1636 | UTF-8
1637 |
1638 |
1639 | Maximum Buffer Size
1640 | 1 MB
1641 |
1642 |
1643 | Maximum Capture Group Length
1644 | 1024
1645 |
1646 |
1647 | Enable Canonical Equivalence
1648 | false
1649 |
1650 |
1651 | Enable Case-insensitive Matching
1652 | false
1653 |
1654 |
1655 | Permit Whitespace and Comments in Pattern
1656 | false
1657 |
1658 |
1659 | Enable DOTALL Mode
1660 | false
1661 |
1662 |
1663 | Enable Literal Parsing of the Pattern
1664 | false
1665 |
1666 |
1667 | Enable Multiline Mode
1668 | false
1669 |
1670 |
1671 | Enable Unicode-aware Case Folding
1672 | false
1673 |
1674 |
1675 | Enable Unicode Predefined Character Classes
1676 | false
1677 |
1678 |
1679 | Enable Unix Lines Mode
1680 | false
1681 |
1682 |
1683 | Include Capture Group 0
1684 | false
1685 |
1686 |
1687 | log.level
1688 | .*(ERROR|WARN|INFO|DEBUG|TRACE).*
1689 |
1690 |
1691 | 0
1692 | 0 sec
1693 | TIMER_DRIVEN
1694 | 1 sec
1695 |
1696 | Extract Log Level
1697 |
1698 | false
1699 | matched
1700 |
1701 |
1702 | true
1703 | unmatched
1704 |
1705 |
1706 | org.apache.nifi.processors.standard.ExtractText
1707 |
1708 |
1709 | 6c207299-ce4c-48fd-0000-000000000000
1710 | 43ed3e33-0157-1000-0000-000000000000
1711 |
1712 | 1168.750311279297
1713 | 296.8599959106445
1714 |
1715 | 30 sec
1716 |
1717 |
1718 |
1719 | 1
1720 | true
1721 | true
1722 | ad7be96a-1b30-445d-96a3-1d08bcdbc923
1723 | Logs
1724 | true
1725 | true
1726 | false
1727 |
1728 |
1729 |
1730 | 1
1731 | false
1732 | true
1733 | c7f08f5e-c265-4a4e-86e6-fe01ae5f03a6
1734 | New Dictionary
1735 | true
1736 | false
1737 | false
1738 |
1739 |
1740 |
1741 | 1
1742 | false
1743 | true
1744 | ef19ca34-7acb-44e0-3ba9-62d925315fa7
1745 | Logs for Analysis
1746 | true
1747 | false
1748 | false
1749 |
1750 |
1751 |
1752 |
1753 | http://localhost:8080/nifi
1754 | RAW
1755 | 10 sec
1756 |
1757 |
1758 | 09/19/2016 16:07:58 EDT
1759 |
--------------------------------------------------------------------------------