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
  • kalariviswa <kalariviswa@no-mx.forums.microfocus.com> wrote:
    >

    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.
    >


    This is just the way the standard delimited text driver works, it doesn't
    create one file per event. Instead it dumps results out until a
    configurable time period has elapsed and then renames the file and starts
    on a new one.

    > 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


    You would need a post processor for this or you should try the generic text
    driver. Pretty sure the latter can do what you want without too much
    trouble.

    --
    If you find this post helpful and are logged into the web interface, show
    your appreciation and click on the star below...

Reply
  • kalariviswa <kalariviswa@no-mx.forums.microfocus.com> wrote:
    >

    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.
    >


    This is just the way the standard delimited text driver works, it doesn't
    create one file per event. Instead it dumps results out until a
    configurable time period has elapsed and then renames the file and starts
    on a new one.

    > 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


    You would need a post processor for this or you should try the generic text
    driver. Pretty sure the latter can do what you want without too much
    trouble.

    --
    If you find this post helpful and are logged into the web interface, show
    your appreciation and click on the star below...

Children
No Data