All Apps and Add-ons

Content Analysis comparison with Http Response

ashishamalviya1
Explorer

Currently we are matching the Content of http Response with value in Content Analysis,
we have a scenario where we need to compare the content (greater then or less then) and provide the content match as True or False,

eg :-

`<group-status xmlns="http://abc.com/manage/groups" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://abc.com/manage/groups manage-groups.xsd">
<id>1041339500789136</id>
<name>Default</name>
<meta>...</meta>
<relations>...</relations>
<status-properties>
<hosts-status-summary>
<total-hosts units="quantity">4</total-hosts>`

we need to compare, total-hosts units should be greater then 3

Tags (1)
0 Karma

LukeMurphey
Champion

I would recommend the Website Input app instead.

You should be able to get what you want using Website Input by using an input that extracts that data along with a search the ensures the value is what you expect. Here is what I am thinking:

  1. Create an input using the included wizard against the URL with the given XML file. Set the selector to "total-hosts". Confirm that the extraction is working as intended by clicking "Preview Output".
  2. Create a saved search that looks at the output created by the input you just made. You ought to be able to setup the logic such that it will alert you when "total-hosts" is 3 or less (something like "... | search match <= 3"
0 Karma
Get Updates on the Splunk Community!

Streamline Data Ingestion With Deployment Server Essentials

REGISTER NOW!Every day the list of sources Admins are responsible for gets bigger and bigger, often making the ...

Remediate Threats Faster and Simplify Investigations With Splunk Enterprise Security ...

REGISTER NOW!Join us for a Tech Talk around our latest release of Splunk Enterprise Security 7.2! We’ll walk ...

Introduction to Splunk AI

WATCH NOWHow are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. ...