Generating a custom named csv in Delimited Text Driver


Hi ,

I am trying to develop a delimited text driver that will listen to add /
modify events and generate a csv file output. I have used the default
configurations in driver and has defined the schema and the filter for
the required attributes.

Whenever there is a add event we are able to get a .csv file (for the
defined attributes) as output, but the file name is a timestamp.
Something like 185914481233.csv. I am not sure from where this name is
getting generated.

My requirement is if the event is

1. for create user , the csv file generated should have a name as
c-username-timestamp.csv
2. for update user , the csv file generated should have a name as
U-username-timestamp.csv

Can you please let me know how i can do this customization for file name
?


--
kalariviswa
------------------------------------------------------------------------
kalariviswa's Profile: https://forums.netiq.com/member.php?userid=9296
View this thread: https://forums.netiq.com/showthread.php?t=56218

Parents
  • As Al wrote there are several ways to do this.

    Since I try to avoid post-processors since they tend to get un-documented and people forget about that they exist I would go with the Generic File Driver.

    The only tricky part that you have in your requirement:
    My requirement is if the event is

    1. for create user , the csv file generated should have a name as
    c-username-timestamp.csv
    2. for update user , the csv file generated should have a name as
    U-username-timestamp.csv


    is the prefix U and C for this I think you need to do some clever rules together with the abilities in the generic file driver.

    As Al writes, this is easy to do with ecma scripts as well but there is a risk with it being single threaded if you use it in a lot of places.
Reply
  • As Al wrote there are several ways to do this.

    Since I try to avoid post-processors since they tend to get un-documented and people forget about that they exist I would go with the Generic File Driver.

    The only tricky part that you have in your requirement:
    My requirement is if the event is

    1. for create user , the csv file generated should have a name as
    c-username-timestamp.csv
    2. for update user , the csv file generated should have a name as
    U-username-timestamp.csv


    is the prefix U and C for this I think you need to do some clever rules together with the abilities in the generic file driver.

    As Al writes, this is easy to do with ecma scripts as well but there is a risk with it being single threaded if you use it in a lot of places.
Children
No Data