cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Former Member
Not applicable
Report Inappropriate Content
Message 1 of 4

McAfee ePO SQUID syntax

Hi,
I have 2 problems using the SQUID and would appriciate your help.

goal - join 2 tables based on a common field and filter the results based on an equal condition.

***http-call*** target="EPOEvents" select="(select EPOEvents.ThreatName EPOEvents.AutoID EPExtendedEvent.EventAutoID EPOEvents.AnalyzerHostName EPExtendedEvent.TargetHash )" where="(where (eq ( EPOEvents.AnalyzerHostName \"ADMIN-PC\")))" order="(order(asc EPOEvents.ThreatName))" joinTables="EPExtendedEvent"

error:
/remote/core.executeQuery?target=EPOEvents&select=(select%20EPOEvents.ThreatName%20EPOEvents.AutoID%20EPExtendedEvent.EventAutoID%20EPOEvents.AnalyzerHostName%0A%20EPExtendedEvent.TargetHash%20)&where=(where%20(eq%20(%20EPOEvents.AnalyzerHostName%20%22ADMIN-PC%22)))&order=(order(asc%20EPOEvents.ThreatName))&:output=json. Body: Error 0 : Invalid S-expression in 'where' clause: EPOEvents.AnalyzerHostName

thought the erorr is very precise, I cannot seem to solve the issue. can you help?

p.s: i've tried the equals clause from the docs and got a similar error:
***http-call*** target="OrionTaskLogTask" select="(select OrionTaskLogTask.UserName)" where="(where (eq ( OrionTaskLogTask.UserName ga)))" order="(order(asc OrionTaskLogTask.StartDate))"
error:
remote/core.executeQuery?select=(select%20OrionTaskLogTask.UserName)&where=(where%20(eq%20(%20OrionTaskLogTask.UserName%20ga)))&order=(order(asc%20OrionTaskLogTask.StartDate))&target=OrionTaskLogTask&:output=json. Body: Error 0 : Invalid S-expression in 'where' clause: OrionTaskLogTask.UserName
 
Thanks, Bar.
Labels (1)
3 Replies
cdinet
Employee
Employee
Report Inappropriate Content
Message 2 of 4

Re: McAfee ePO SQUID syntax

Please look at PD24810, the epo web api scripting guide.  It has some examples for using a where condition and other examples.  

Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

Former Member
Not applicable
Report Inappropriate Content
Message 3 of 4

Re: McAfee ePO SQUID syntax

Hi I was looking at the documentation and had some success with the 'where' caluse.
however, I haven't found documentation regarding left/right.outer/inner join over a field from different tables.
can you assist in giving 1 or 2 examples?

 

Thanks,

cdinet
Employee
Employee
Report Inappropriate Content
Message 4 of 4

Re: McAfee ePO SQUID syntax

That would have to come from someone else, I am not good with scripting.  

Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use our Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from product experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by employees.
Join the Community
Join the Community