How to get frequency of a pattern


(Histell) #1

Hi,

I have documents like below. What I want is to get frequency of apple words(1 apple_x, 2 apple_y, 1 apple_z). What is the best way for doing this. I get data from logstash by the way. Should I use add_field filter in logstash?

{
	"field1": "text text apple_x text text"
}

{
	"field1": "text text apple_y text text"
}

{
	"field1": "text text apple_y text text"
}

{
	"field1": "text text apple_z text text"
}

(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.