• Help needed

    From Steven Sheeley@1:275/97 to All on Sun Jan 29 19:32:28 2017
    I've been relearning Pascal over the past few months and have been working with Lazarus and Free Pascal. I've been working on a Log Analyzer/Archiver & Bulletin Generator program for BBS systems. I've got the GUI mainly designed and I can display log files in a Memo control. My issue is with parsing text files. I just can not wrap my head around it.

    If anyone can point me in the right direction or can lend a hand in this, please reach out to me ehre or at Split Infinity BBS (infinity.synchro.net).

    Thank you in advance

    ... Mary had a little RAM -- only about a MEG or so.
    --- SBBSecho 3.00-Win32
    * Origin: Split Infinity BBS - telnet: infinity.synchro.net (1:275/97)
  • From mark lewis@1:3634/12.73 to Steven Sheeley on Sun Jan 29 20:27:58 2017

    On 2017 Jan 29 19:32:28, you wrote to All:

    My issue is with parsing text files. I just can not wrap my head
    around it.

    parsing in what way? what is it that you don't understand? what is there to be parsed instead of simply displayed?

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... We got Puritans, Aussies got convicts. They got the better deal.
    ---
    * Origin: (1:3634/12.73)
  • From Steven Sheeley@1:275/97 to mark lewis on Mon Jan 30 08:06:00 2017
    Re: Help needed
    By: mark lewis to Steven Sheeley on Sun Jan 29 2017 20:27:58

    I want to pull information from the log files and store in a database to create stats bulletins and to display specific parts of the log file on the main form, such as last inbound connection and last outbound connection for the mailer, etc, etc, etc.

    ... Old fishermen never die, they just smell that way.
    --- SBBSecho 3.00-Win32
    * Origin: Split Infinity BBS - telnet: infinity.synchro.net (1:275/97)
  • From mark lewis@1:3634/12.73 to Steven Sheeley on Mon Jan 30 12:14:14 2017

    On 2017 Jan 30 08:06:00, you wrote to me:

    I want to pull information from the log files and store in a database to create stats bulletins and to display specific parts of the log file on
    the
    main form, such as last inbound connection and last outbound connection
    for
    the mailer, etc, etc, etc.

    ok, that should be pretty straight forward, then... simply read the line and break it into specific parts... then use those parts for the tallying... some logs carry log level indicators before the datetime stamp... some have the date
    at the top of the section and only the timestamp on each line... aside from that it is just a matter of reading the log and deciding which lines you need to keep and tally as well as being able to detect which systems are contacted outbound or have contacted inbound so overall tallys as well as inbound and outbound can be kept...

    it is your average tedious log analysis stuff, that's for sure... i find it in the same realm as BBS stats on users' data, BBS usage and even file uploading/downloading as well as message postings ;)

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... This echo just gets weirder and weirder. Oh wait. That's me. Sorry.
    ---
    * Origin: (1:3634/12.73)