Hi Guys

Any idea on this

I using LogstreamerInput to read my ongoing logs. Currently my logs has
been rolling for every 15h min. When using heka its reading duplicate
values. I.e its reading same file again and again.

Following is the file pattern

smpp_cdr   (This the current log file)
smpp_cdr_2015032416150055
smpp_cdr_2015032416300056
smpp_cdr_2015032416450057

I using following pattern to identify the file pattern
file_match= 'smpp_cdr(_(?P<Seq>\d*))?'
priority =["Seq"]
 This is read the rolled files  perfectly but its reading the current log
file (smpp_cdr) first. Also when current file gets rolled heka reading all
the file again. Please advice / help on this.

Thank you

On 20 March 2015 at 18:44, rajive kumar <[email protected]> wrote:

> Hi
>
> Currently I am using Logstreamer input to process another applications
> current log file. Its working fine but I have an issue when file rolling ->
> its reading the file twice. Please help on this. Below the file structure I
> have in that system
>
> *trans_log*   <- current log
> *150320001_trans_log    *
>
> *150320002_trans_log*
>
> *150320003_trans_log*
>
> *150320004_trans_log*
>
> *150320005_trans_log*
> *150320006_trans_log*
>
> Note my files are rolling in every 15 mins and I want to read the previous
> logs and current log while its printing(i.e logging).
>
>
> Best Regards,
>
_______________________________________________
Heka mailing list
[email protected]
https://mail.mozilla.org/listinfo/heka

Reply via email to