I am attempting to consume a csv through a VRL, and output a VRL message. I am using an XLATE to make a couple really quick modifications to that data and add some static values to some of the outbound VRL fields. This works just fine.
My problem is the header of the file, which I remove (ignore) at the beginning of the XLATE (just suppress that new line), contains a file date and I need to insert into the outbound date field in the outbound VRL. It’s the same date into the same spot in every new line coming from the source file, but the date only appears in the header. Any idea how I can get this variable to be usable for each new line so that I can insert it into all the new lines out?
Attached is a very basic image of the inbound data structure, and where the date is. The top 3 lines are header info that I remove, I did store the date into a variable, but it’s only usable when I’m on that new line and not for the rest. The last 2 lines in this example are [example] new lines I need to forward, with the date in each one (plus many other static values via the xlate). Could be any number of new lines in the inbound file. Everything but the date variable is working great. Please let me know if you have any suggestions. I’m assuming I am missing something simple here.
Thank you,
Jon