Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Single horizontal line to vertical rows based on event ID

Kıvanç
5 - Atom

Hi,

 

I need some help in order convert below log into readable and format. Original log is in single line and my target is line per event ID (bold). As it seen below some event IDs are separated some are not.

 

Original log 

9138:(M) Unknown task at 23:58:00 14-Oct-20 :A new logfile - PVSLOG:SYSERRLOG has been created. :The old logfile has been saved under PVSLOG:OLDSYSLOG : :9139:(M) Event/Report manager at 23:58:00 14-Oct-20 :?commands:logtidy.com submitted to queue SYS$BATCH9140:(M) Unknown task at 23:58:00 14-Oct-20 :Terminal TNA8447:, user USER1, :command 'vo227 ;VO1' - started9141:(M) Unknown task at 23:58:00 14-Oct-20 :Terminal TNA8447:, user USER1, command vo227 - completed9142:(M) Unknown task at 23:58:00 14-Oct-20 :Terminal TNA8447:, user USER1, :command 'vo184 ' - started9143:(M) Unknown task at 23:58:00 14-Oct-20 :Terminal TNA8447:, user USER1, command vo184 - completed9144:(M) Unknown task at 23:58:01 14-Oct-20 :Terminal TNA8454:, user USER2, :command 'VO7 ' - started9145:(M) Unknown task at 23:58:01 14-Oct-20 :Terminal TNA8454:, user USER2, command VO7 - completed9146:(M) Unknown task at 23:58:01 14-Oct-20 :Terminal TNA8454:, user USER2, :command 'VO7 ' - started9147:(M) Unknown task at 23:58:01 14-Oct-20 :Terminal TNA8454:, user USER2, command VO7 - completed9148:(M) Unknown task at 23:58:02 14-Oct-20 :Terminal TNA8437:, user USER3, :command 'ZONE-COUNT 198-218 K' - started9149:(M) Unknown task at 23:58:02 14-Oct-20 :Terminal TNA8447:, user USER1, :command 'vo227 ;VO1' - started9150:(M) Unknown task at 23:58:02 14-Oct-20 :Terminal TNA8447:, user USER1, command vo227 - completed

 

My target


9138:(M) Unknown task at 23:58:00 14-Oct-20 :A new logfile - PVSLOG:SYSERRLOG has been created. :The old logfile has been saved under PVSLOG:OLDSYSLOG : :
9139:(M) Event/Report manager at 23:58:00 14-Oct-20 :?commands:logtidy.com submitted to queue SYS$BATCH
9140:(M) Unknown task at 23:58:00 14-Oct-20 :Terminal TNA8447:, user USER1, :command 'vo227 ;VO1' - started
9141:(M) Unknown task at 23:58:00 14-Oct-20 :Terminal TNA8447:, user USER1, command vo227 - completed
9142:(M) Unknown task at 23:58:00 14-Oct-20 :Terminal TNA8447:, user USER1, :command 'vo184 ' - started
9143:(M) Unknown task at 23:58:00 14-Oct-20 :Terminal TNA8447:, user USER1, command vo184 - completed
9144:(M) Unknown task at 23:58:01 14-Oct-20 :Terminal TNA8454:, user USER2, :command 'VO7 ' - started
9145:(M) Unknown task at 23:58:01 14-Oct-20 :Terminal TNA8454:, user USER2, command VO7 - completed
9146:(M) Unknown task at 23:58:01 14-Oct-20 :Terminal TNA8454:, user USER2, :command 'VO7 ' - started
9147:(M) Unknown task at 23:58:01 14-Oct-20 :Terminal TNA8454:, user USER2, command VO7 - completed
9148:(M) Unknown task at 23:58:02 14-Oct-20 :Terminal TNA8437:, user USER3, :command 'ZONE-COUNT 198-218 K' - started
9149:(M) Unknown task at 23:58:02 14-Oct-20 :Terminal TNA8447:, user USER1, :command 'vo227 ;VO1' - started
9150:(M) Unknown task at 23:58:02 14-Oct-20 :Terminal TNA8447:, user USER1, command vo227 - completed

 

Thanks in advance.

1 REPLY 1
Qiu
20 - Arcturus
20 - Arcturus

@Kıvanç 
I am not an Expert of Regex, so have to combine with other tools. 

But this should get what you need.
Appreciate if you could mark it as accepted if you like it.1017-Kıvanç.PNG

Labels