Jump to content

Recommended Posts

Posted

In Excel you can parse in a couple of different ways.

 

If you are dealing with a "fixed width" line, where every line holds the same exact format in the same exact positions (i.e. IP address always starting at position X) then Excel will lead you through a Wizard of what columns to split the file up on.

 

However, it may not be that the log file is set up this way (I haven't looked recently). In this case I use a couple of Excel formulas that figure out where to get the data from.

 

It's easy to do if I have the data in front of me.

 

If you want to send me a small subset of your file, like 5 records, I could do it up for you and you could use it for the rest of your entries.

 

Let me know if I can help!

Posted

Just to end any further confusion over formats, I brought up my raw access log.

 

The positions (length) of the IP address does vary slightly which impacts the position of where the date lands. This means that the second option in Excel is what will work. Because the position changes, using the file parse technique will clip pieces of data.

 

I didn't see anything that the fields were delimited by.

 

Let me know if you need help with this.

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...