Use this diff to patch for the above changes if you do not want to do it by hand.
*** old/bin/levenshtein.py 2014-11-11 14:49:21.000000000 -0600
--- new/bin/levenshtein.py 2016-03-14 20:01:06.000000000 -0500
***************
*** 27,33 ****
results,dummyresults,settings = splunk.Intersplunk.getOrganizedResults()
for r in results:
! if "_raw" in r:
if command=="ratio":
ratio=Levenshtein.ratio(r[string1], r[string2])
r["ratio"]=ratio
--- 27,33 ----
results,dummyresults,settings = splunk.Intersplunk.getOrganizedResults()
for r in results:
! if string1 in r and string2 in r:
if command=="ratio":
ratio=Levenshtein.ratio(r[string1], r[string2])
r["ratio"]=ratio
diff -rc old/default/commands.conf new/default/commands.conf
*** old/default/commands.conf 2014-11-05 12:44:12.000000000 -0600
--- new/default/commands.conf 2016-03-14 20:01:44.000000000 -0500
***************
*** 1,2 ****
--- 1,4 ----
[levenshtein]
filename=levenshtein.py
+ retainsevents=true
+ streaming=true
... View more