Not able to enrich graylog function

I had written a graylog function to get fiscal quarter as per user_registration_date. i have added csv which tells about date and respective quarter where date fell. now when i am calling pipeline rule(made enriched function call) it is not showing enriched data in graylog web UI.

expectation is - it should create new enriched field(registration_date_quarter, which will be like FY2020 Q1) and visible in graylog web UI. any help appreciated

rule i had written -
rule “Fiscal Period Enrichment”
when
true
then
enrich_fiscal_periods(“user_registration_date”);
end

you need to tell the processing pipeline what is shall do exactly.

rule “Fiscal Period Enrichment”
when
 has_field("user_registration_date")
then
 set_field("fiscal_period", enrich_fiscal_periods(“user_registration_date”));
end

Means you write the result of that function into a field.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.