Hi All,
I have few sample log:
139.12.0.2 - - [10/Apr/2007:10:40:54 +0300] "GET /favicon.ico HTTP/1.1"
200 766 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3)
Gecko/20061201 Firefox/2.0.0.3 (Ubuntu-feisty)"
If load this file in as string
a = load '/user/sample/log.txt' using PigStorage('/t') as (text: chararray);
then how can I extract a part of string from it, for example if I want to
extract date '10/Apr/2007:10:40:54' from it, Then can I achieve this thing
using Pig script?
Any help or suggestions are welcome.
Thanks in advance.
Meenal