Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4616562
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:59:56+00:00 2026-05-22T01:59:56+00:00

There is a simple text file that have to be parse by using log

  • 0

There is a simple text file that have to be parse by using log parser.
Just I started using log parser but not understanding What is its parsing limit. I mean Can i do such thing by using logparser

TextLine to parse:

1022303Name      WXP3

This I have to parse like

First digit 1 is row name
Next three digit 022 is errorNumber
next three digit 303 is UserID
next ten char Name is UserName
next 4 char WXP3 is SystemName

I am not able to understand can we do this query from log parser or not…
If yes then give any sample query.

ANY OTHER TOOL TO PERFORM THIS IS MOST WELCOMED

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T01:59:57+00:00Added an answer on May 22, 2026 at 1:59 am

    You want the SUBSTR function.

    logparser -i:textline "select substr(text, 0, 1) AS RowName, substr(text, 1, 3) AS ErrorNumber, substr(text, 4, 3) AS UserId, substr(text, 7, 10) AS UserName, substr(text, 17, 4) AS SystemName from temp.txt
    

    This assumes the lengths are really set to a particular size.

    temp.txt text used above:

    1022303Name1     WXP3
    1022303Name 2    WXP4
    1022303Name 3    WXP5
    1022303Name 4    WXP6
    1022303Name 5    WXP7
    1022303Name 6    WXP8
    1022303Name 7    WXP9
    1022303Name 8    WXPa
    

    Since it’s been linked to before, I’ll also point you to Log Parser Plus, which I ‘run,’ and may be of some help with other log parser functions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The program that was created allows users to simply parse a log text file.
Is there a simple and lightweight program to search over a text file and
I have a simple log file which is very messy and I need it
I have a simple log file which is very messy and I need it
I have a windows service writes its log in a text file in a
My problem is pretty simple; I have text file filled with double precision floating
Is there a simple way of getting a HTML textarea and an input type=text
Is there a simple way to cache MySQL queries in PHP or failing that,
Is there any simple way to programatically colorize images in .NET? Basically we have
I need a simple way to monitor multiple text log files distributed over a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.