ListAzureBlobStorage_v12 2025.10.9.21

Bundle

org.apache.nifi | nifi-azure-nar

Description

Lists blobs in an Azure Blob Storage container. Listing details are attached to an empty FlowFile for use with FetchAzureBlobStorage. This Processor is designed to run on Primary Node only in a cluster. If the primary node changes, the new Primary Node will pick up where the previous node left off without duplicating all of the data. The processor uses Azure Blob Storage client library v12.

Tags

azure, blob, cloud, microsoft, storage

Input Requirement

FORBIDDEN

Supports Sensitive Dynamic Properties

false

Properties

PropertyDescription
Blob Name PrefixSearch prefix for listing
Container NameName of the Azure storage container. In case of PutAzureBlobStorage processor, container can be created if it does not exist.
Entity Tracking Initial Listing TargetSpecify how initial listing should be handled. Used by ‘Tracking Entities’strategy.
Entity Tracking State CacheListed entities are stored in the specified cache storage so that this processor can resume listing across NiFi restart or in case of primary node change. ‘Tracking Entities’strategy require tracking information of all listed entities within the last ‘Tracking Time Window’. To support large number of entities, the strategy uses DistributedMapCache instead of managed state. Cache key format is ‘ListedEntities::{processorId}(::{nodeId})’. If it tracks per node listed entities, then the optional ‘::{nodeId}’ part is added to manage state separately. E.g. cluster wide cache key =’ListedEntities::8dda2321-0164-1000-50fa-3042fe7d6a7b’, per node cache key =’ListedEntities::8dda2321-0164-1000-50fa-3042fe7d6a7b::nifi-node3’ The stored cache content is Gzipped JSON string. The cache key will be deleted when target listing configuration is changed. Used by ‘Tracking Entities’strategy.
Entity Tracking Time WindowSpecify how long this processor should track already-listed entities. ‘Tracking Entities’strategy can pick any entity whose timestamp is inside the specified time window. For example, if set to ’30 minutes’, any entity having timestamp in recent 30 minutes will be the listing target when this processor runs. A listed entity is considered ‘new/updated’ and a FlowFile is emitted if one of following condition meets: 1. does not exist in the already-listed entities, 2. has newer timestamp than the cached entity, 3. has different size than the cached entity. If a cached entity ‘s timestamp becomes older than specified time window, that entity will be removed from the cached already-listed entities. Used by’Tracking Entities’strategy.
Listing StrategySpecify how to determine new/updated entities. See each strategy descriptions for detail.
Maximum File AgeThe maximum age that a file must be in order to be pulled; any file older than this amount of time (according to last modification date) will be ignored
Maximum File SizeThe maximum size that a file can be in order to be pulled
Minimum File AgeThe minimum age that a file must be in order to be pulled; any file younger than this amount of time (according to last modification date) will be ignored
Minimum File SizeThe minimum size that a file must be in order to be pulled
Record WriterSpecifies the Record Writer to use for creating the listing. If not specified, one FlowFile will be created for each entity that is listed. If the Record Writer is specified, all entities will be written to a single FlowFile instead of adding attributes to individual FlowFiles.
Storage CredentialsController Service used to obtain Azure Blob Storage Credentials.
proxy-configuration-serviceSpecifies the Proxy Configuration Controller Service to proxy network requests. In case of SOCKS, it is not guaranteed that the selected SOCKS Version will be used by the processor.

State management

ScopesDescription
CLUSTERAfter performing a listing of blobs, the timestamp of the newest blob is stored if ‘Tracking Timestamps’ Listing Strategy is in use (by default). This allows the Processor to list only blobs that have been added or modified after this date the next time that the Processor is run. State is stored across the cluster so that this Processor can be run on Primary Node only and if a new Primary Node is selected, the new node can pick up where the previous node left off, without duplicating the data.

Relationships

NameDescription
successAll FlowFiles that are received are routed to success

Writes attributes

NameDescription
azure.containerThe name of the Azure Blob Storage container
azure.blobnameThe name of the blob on Azure Blob Storage
azure.primaryUriPrimary location of the blob
azure.etagETag of the blob
azure.blobtypeType of the blob (either BlockBlob, PageBlob or AppendBlob)
mime.typeMIME Type of the content
langLanguage code for the content
azure.timestampTimestamp of the blob
azure.lengthLength of the blob

See also