Comments (4)
Ok, I'll look into this one. The tstats tests seem to pass, so can you provide me a list of tstat invocations that are not working?
from splparser.
Like:
tstats summariesonly
min(_time) as firstTime,max(_time) as lastTime from datamodel=Authentication where Authentication.app!=unknown by Authentication.app
I tried to delete different fields of tstats here to see which one caused the error. It seems that "datamodel=Authentication", "Authentication.app!=unknown", "by Authentication.app" have problems.
from splparser.
"datamodel" is another Splunk command, so that makes sense that it doesn't work -- that should be fixed by PR #119. I think the period character is the source of the problem for the other case. A period is a concatenation operator with the eval commands so it has to be tokenized differently for those cases (it has to cause a token break). I use this eval-compatible approach with *stats commands because I think stats can sometimes be called with eval functions? Or some of them can anyway -- can't remember exactly. But maybe this will finally cause this approach to break. This could be a really difficult fix to make -- how many queries with tstats with "." are there?
from splparser.
I remembered there are a lot, over 200 or something. So I thought tstat is not working. But I checked through them just now and found that period and datamodel seem to be the fields that most of them are in common.
from splparser.
Related Issues (20)
- Inconsistent search command output
- Add tests for all unimplemented commands.
- Fix rex tests so that they don't cause a cascading error. HOT 1
- Use classes to encapsulate parsers. HOT 1
- Warnings printed out when parsetabs created need to be addressed. HOT 1
- Fix error handling in splparser/decorators.py: print e.args or e.message, whichever is not ""
- Refactor code so that there are not so many near-duplicate files in test/splparser/rules/
- Make sure all option regexes in search regexes have proper ending token
- Reconsider the placement of groupby's in commands with groupby's
- Implement tests for macros and user-defined commands
- fix bug: when search is the parameter of other commands HOT 2
- cannot parse " ` ` " HOT 3
- dedup argument sequence HOT 1
- search field after search command HOT 1
- multikv command can have no fields; we should omit new line (\n) HOT 1
- audit is a command but it appears as field in after search command HOT 1
- fillnull should work when there's only value field HOT 1
- Re-implement all tests so they run faster
- Can not parse "," value in EVAL function argument HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from splparser.