The obvious problem is that you are splitting the input on whitespace, but individual log file records also contain embedded whitespace. The solution depends on the way in which the data is delimited within the log file. For example:

As you can see from earlier responses, our ability to provide you with a definitive answer is hampered by the lack of information in your original post.
A better question gets better answers:
read the guidelines in "How do I post a question effectively?" to see how you could have improved on this.

As already noted, splitting based on whitespace is a faulty assumption in your algorithm, assuming company names have whitespace in them.

This, in my experience, is a common error for someone parsing a log for the first time so don't feel bad. :-)
I prefer to parse logs based on predictable components. The more wild the potential format, the more complicated the code gets, but for a relatively simple format like the one you are suggesting, I think it's fairly straightforward (assuming you have a basic understanding of Regular Expressions).

You have to craft your Regular Expression to match the data you are expecting. A technique I have become fond of is the use of an if statement, which provides the additional feature of filtering out lines that don't match my preconceived format. I often capture those out to another file for occasional review to see if the parsing routine needs to compensate for previously unknown formats or conditions. I won't do that in this example so we can save space.