Member since
10-17-2018
8
Posts
1
Kudos Received
5
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
1396 | 12-05-2018 10:40 AM | |
1080 | 12-05-2018 10:22 AM | |
6776 | 10-19-2018 11:41 AM | |
4342 | 10-19-2018 06:00 AM | |
1043 | 10-17-2018 01:50 PM |
12-05-2018
10:40 AM
1 Kudo
@Mahendra Hegde You can use the function anyDelineatedValue. ${anyDelineatedValue("${your_attribute}", ","):contains("US")}
... View more
12-05-2018
10:22 AM
@Pallavkumar Registry would be a better option if your query keeps changing because changes in property files need NiFi to be restarted in order to reflect.
... View more
10-19-2018
11:41 AM
@David Sargrad, JOLT cannot do that for you. You need to first get the value of the issued field in a flowfile attribute(using EvaluateJsonPath), then you can use expression language functions on that attribute to extract the year, month, date and so on from that attribute. You can use expression language in JOLT. [
{
"operation": "default",
"spec": {
"issued_year": "${date_attribute:toNumber():format('YYYY')}",
"issued_month": "${date_attribute:toNumber():format('MM')}"
}
}
] Assuming that date_attribute is the attribute containing the evaluated date.
... View more
10-19-2018
11:26 AM
@David Sargard, "@" copies whatever is present at the current level, and copies it to "&2.&" Here &2 means go up two levels and grab the key, and & means go up one level and grab the key. i.e., &2 will return textNOTAM and & will return NOTAM, so &2.& will place whatever value you get at the following jsonPath: textNOTAM.NOTAM
... View more
10-19-2018
06:00 AM
@@David Sargrad, you can use this specification, [
{
"operation": "shift",
"spec": {
"textNOTAM": {
"NOTAM": {
"issued": "issued",
"effectiveStart": "effectiveStart",
"effectiveEnd": "effectiveEnd",
"@": "&2.&"
}
}
}
}
]
... View more
10-17-2018
01:50 PM
@Suresh Denukuri You can use the query property in GetMongo Processor. If you have the query in the body of an incoming flowfile, leave it blank, else you can specify the query here.
... View more