[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[LDM #PNW-392229]: rtstats
- Subject: [LDM #PNW-392229]: rtstats
- Date: Tue, 10 Feb 2015 10:46:03 -0700
Khang Tran,
The feedtype and product-identifier of a data-product can't be changed: they
are set by the program that created the data-product.
Unfortunately, the identifiers of the products that you want to treat
differently are too similar to each other to distinguish with simple extended
regular expressions.
If the string "localhost" only appears at the end of the product-identifier of
the data-products that you want to file in a different directory, then your
pqact(1) configuration-file entry can be replaced by the following 2 entries:
EXP ^rtstats[^/]*/([^/]*)/([^/]*)/(.*localhost)$ FILE
logs/rtstats/<someplace_else>
EXP ^rtstats[^/]*/([^/]*)/([^/]*)/(.*[^l][^o][^c][^a][^l][^h][^o][^s][^t])$
FILE logs/rtstats/\2/%Y%m%d/\1/\3
I've added an issue on the LDM's GitHub site about adding an option to the FILE
command that would short-circuit further matching against pqact(1)
configuration-file entries. This would be a better solution.
> Full Name: khang tran
> Email Address: address@hidden
> Organization: noaa.gov
> Package Version: ldm-6.10.1
> Operating System: linux
> Hardware:
> Description of problem: ldmd.conf has
> request EXP ".*" <host-id>
>
> pqact.conf has
> EXP ^rtstats[^/]*/([^/]*)/([^/]*)/(.*)
> FILE logs/rtstats/\2/%Y%m%d/\1/\3
>
> ldmadmin watch shows
>
> 1 - EXP 000 201502101540~~CONVOL:URP:WHK:RADAR:IRIS
> 2 - EXP 847 rtstats-6.10.1/205.156.51.46/EXP/205.156.51.46_v_localhost
> 3 - EXP 848
> rtstats-6.10.1/205.156.51.46/EXP/wxo-m1.cmc.ec.gc.ca_v_205.189.10.53
> 4 - EXP 845
> rtstats-6.10.1/205.156.51.46/NEXRAD2/rpga2-phkm.nexrad.noaa.gov_v_140.90.73.177
>
> how do i change the label of feed #2 from EXP to something else so it will be
> stored in a different directory
>
> thanks
>
>
>
Regards,
Steve Emmerson
Ticket Details
===================
Ticket ID: PNW-392229
Department: Support LDM
Priority: Normal
Status: Closed