Knowledge Management

Field alias showing improper count - splunk 4.3.2 ??

rakesh_498115
Motivator

Hi ,

I have two field extractions like the below ones in my props.conf file.now i have created an alias for these two extractions as Product i.e

[productinfo]
EXTRACT-t2r_b2b_prodID = ServiceType>(?<t2r_b2b_prodID>[^<]*)<
EXTRACT-b2b_prodID = (?<=SellersItemIdentification).*?\s*\<.*?ID\>(?<b2b_prodID>[^<]*)\<
FIELDALIAS-prodID = b2b_prodID AS Product t2r_b2b_prodID AS Product

// query1
sourcetype="productinfo" | top b2b_prodID

is having 10 products info

// query2
sourcetype="productinfo" | top t2r_b2b_prodID

is having 5 products info

but wen i run
//query 3
sourcetype="productinfo" | top Product

it should show 15 products info and count should match.. but this not matching.. can any one help wats been wrong here ..pls

Tags (2)
0 Karma

lpolo
Motivator

Try this:

sourcetype="productinfo" | top limit=0 Product 
0 Karma

rakesh_498115
Motivator

yeah tried that . its not problem with the query .its problem with the count ...say in my first query i am getting a product A with count 100 and in second query i am A count 50 , then ideally in third query A count should be 150 but it is not... 😞

0 Karma

dsrvern
Explorer

Hi rakesh,

I'm seeing the same problem with field aliases. Did you ever find a solution to this issue?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Deep insights, no barriers: Splunk Observability Cloud Free Edition

As software delivery cycles continue to accelerate, observability shouldn’t be a luxury — it should be a ...

Guide: Isolated OpenTelemetry Tracing for Multiple WARs in WildFly

Isolating Telemetry Boundaries: How to Trace Multiple WARs as Separate Services in One WildFly JVM   Executive ...

Painting a Clearer Picture: Creating Cross-Domain Visibility with AI Canvas

    Thursday, June 25, 2026  |  11AM PDT / 2PM EDT  Duration: 1 Hour (Includes live Q&A) Register to ...