Unique Item Counter

Counts the number of unique items per configurable time period e.g. active daily users by uid.

1. Sample Configuration

filename = 'moz_logging_unique_items.lua'
message_matcher = "Type == 'logging.fxa.auth_server.nginx.access'"
ticker_interval = 60
preserve_data = true

-- message_variable (string, required)
-- The Heka message variable containing the item to be counted.
message_variable = "Fields[http_x_forwarded_for]"

-- title (string, optional, default "Estimated Unique Daily *message_variable*")
-- The graph title for the cbuf output.
-- title = nil

-- enable_delta (bool, optional, default false)
-- Specifies whether or not this plugin should output cbuf deltas
-- enable_delta = false

-- rows (uint, optional, default 365)
-- The numbers of rows or time periods to keep in history.
-- rows = 365

-- seconds_per_row (uint, optional, default 86400)
-- The number of seconds per row or time period, before switching to the next row.
-- seconds_per_row = 86400

-- preservation_version (uint, optional, default 0)
-- If `preserve_data = true` then this value should be incremented every time
-- the `rows` or 'seconds_per_row' configuration is changed to prevent the
-- plugin from failing to start during data restoration.
-- preservation_version = 0

source code: moz_logging_unique_items.lua

results matching ""

    No results matching ""