Hi Bhunavana,
take this example:
index=_internal [| gentimes start=-1 | eval source="foo.boo-" + strftime(now(), "%Y-%m-%d") | return source]
this will translate to this Splunk litsearch:
litsearch index=_internal source="foo.boo-2015-02-03"
So using your provided search try something like this:
index=test [| gentimes start=-1 | eval source="/env/transactionlog/aaa_Logs/TL_aaa_WUCARD_LOOKUP_" + strftime(now(), "%Y-%m-%d") + ".xml" | return source ] | rex field=_raw "(?P[^<]+)" | stats count by Tran
Hope this helps ...
cheers, MuS
... View more