I’m trying to create my first pipeline. It is very basic :
‘’’
rule “replace timestamp”
when
true
then
debug($message.HTTPDATE);
let new_date = parse_date(to_string($message.HTTPDATE), “dd/MMM/yyyy:HH:mm:ss”, “FR”, “CET”);
debug(new_date);
set_field(“timestamp”, new_date);
end
‘’’
When trying to save or apply, receive error : Could not save processing rule “undefined”, Could not save processing rule “undefined” (obfuscated url) (400).
Does the pipeline rule you’re configuring actually contain the stylized left and right double quotation marks (U+201C and U+201D)? Or are they the neutral quotation marks (U+0022)? If they’re stylized that’s probably what’s causing your issue.
rule "replace_timestamp"
when
true
then
debug($message.HTPDATE);
let new_date = parse_date(to_string($message.HTTPDATE), “dd/MMM/yyyy:HH:mm:ss”, "FR", "CET");
debug(new_date);
set_field(“timestamp”, new_date);
end