LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  Multiple BRD files and HeaderLess Entries

    Employee
    Posted 07-07-2009 22:00

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: phourigan_MDS

    Hi,

    I'm currently trying to use BRAIN to data mine log files for a client in order to ascertain usage patterns of a software component.

    I have a number of files which I want to import us and the multiple BRD node.

    Here's what the files look like:
    File 1
    2009-01-01 00:03:56,687 DEBUG Server Started
    2009-01-01 00:06:26,117 INFO Payment Processed
    ... repeated lines for remainder of the day


    File 2
    2009-01-02 00:01:01,687 DEBUG Server Started
    2009-01-02 00:06:25,007 INFO Payment Processed
    ... repeated lines for remainder of the day


    Note there are no headers on these files.

    What I need is all the files rolled into the output, but when I run the Multiple BRD node, itthere a way to nominate a header that represents the full line in each file?

    Bear in mind I have a file for every day for the last year so I dont want to manually put a header into each file, with a name like 'record' or something.

    any help appreciated
    Many Thanks


  • 2.  RE: Multiple BRD files and HeaderLess Entries

    Employee
    Posted 07-08-2009 14:43

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: rboccuzzi

    You can use the Directory Node that you are using, but instead of feeding to multiple BRD Node, which is designed to take actual .brd files (our internal format), you want to put the output of the Directory node into the input of a Delimited File node.
    the first line of data as a header, but use this instead.

    Cheers
    Rich

    Post edited by: rboccuzzi, at: 2009/07/08 16:43<br><br>Post edited by: rboccuzzi, at: 2009/07/08 16:44


  • 3.  RE: Multiple BRD files and HeaderLess Entries

    Employee
    Posted 07-13-2009 14:11

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: phourigan_MDS

    Great,

    Thanks for the reply. This works perfectly.

    The learning curve continues....