<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Why Can't I use a datamodel backwards? in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Why-Can-t-I-use-a-datamodel-backwards/m-p/194508#M4216</link>
    <description>&lt;P&gt;Use case: Build a complex data model to bucket poorly standardized logs into meaningful buckets of distinct use cases for errors. Add a lookup of what it means. People at the service desk could use this info when they get a call. Build a form to allow them to do a search like... &lt;/P&gt;

&lt;P&gt;username=foo earliest=now latest=-12h | datamodel complexdatamodel clienterrors search | fields _time username WhatThisMeans WhatToDoAboutIT WhenWillItBeFixed&lt;/P&gt;

&lt;P&gt;They would know what we know without any expertise. Right now it looks like what I would have to do is run the entire datamodel and then search the results....&lt;/P&gt;

&lt;P&gt;| datamodel complexdatamodel clienterrors search | fields _time username WhatThisMeans WhatToDoAboutIT WhenWillItBeFixed | search username=foo&lt;/P&gt;</description>
    <pubDate>Tue, 26 Aug 2014 08:37:17 GMT</pubDate>
    <dc:creator>snoobzilla</dc:creator>
    <dc:date>2014-08-26T08:37:17Z</dc:date>
    <item>
      <title>Why Can't I use a datamodel backwards?</title>
      <link>https://community.splunk.com/t5/Reporting/Why-Can-t-I-use-a-datamodel-backwards/m-p/194506#M4214</link>
      <description>&lt;P&gt;Error in 'SearchParser': The datamodel command can only be used as the first command on a search&lt;/P&gt;

&lt;P&gt;Ok... more of theoretical discussion here..&lt;/P&gt;

&lt;P&gt;Why oh why can't I push events into a data model and see where it lands in the datamodel?&lt;/P&gt;

&lt;P&gt;Datamodels look awesome for big picture analytics. However, I am trying to build tools to help classify individual events(errors) through lookups and such so that people at the support desk know exactly what they are looking at. &lt;/P&gt;

&lt;P&gt;Essentially we build datamodels to put events into buckets... why can't I put an event through to see which bucket it lands in? If I could throw individual or a small set of events at the at a complex datamodel it would be ideal for this purpose. However it seems like to filter for say an individual username in a datamodel schema I have to run the entire datamodel OR add it to the data model as a constraint? Why can't I pipe into a data model?&lt;/P&gt;

&lt;P&gt;Thoughts from fellow Splunkers? Would anyone else find this useful?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2014 01:25:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Why-Can-t-I-use-a-datamodel-backwards/m-p/194506#M4214</guid>
      <dc:creator>snoobzilla</dc:creator>
      <dc:date>2014-08-26T01:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why Can't I use a datamodel backwards?</title>
      <link>https://community.splunk.com/t5/Reporting/Why-Can-t-I-use-a-datamodel-backwards/m-p/194507#M4215</link>
      <description>&lt;P&gt;Not sure I follow your exact use-case. A datamodel is not a means of storage, it is a way of representing data already that already exists in your index. This model can then be used by at least pivot and tstats - you can add your filters there. Or, you can do it by adding new constraints in the model itself. I don't know what you mean by "running the whole model" - a regular search with a username constraint like "&lt;CODE&gt;... username=foo&lt;/CODE&gt;" isn't looking at all the data in the timerange, it only grabs data which matches the constraint. It's the same with data models.&lt;/P&gt;

&lt;P&gt;Perhaps if you elaborated a bit more on your exact use-case it would be possible to post a more meaningful response.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2014 06:57:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Why-Can-t-I-use-a-datamodel-backwards/m-p/194507#M4215</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-08-26T06:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why Can't I use a datamodel backwards?</title>
      <link>https://community.splunk.com/t5/Reporting/Why-Can-t-I-use-a-datamodel-backwards/m-p/194508#M4216</link>
      <description>&lt;P&gt;Use case: Build a complex data model to bucket poorly standardized logs into meaningful buckets of distinct use cases for errors. Add a lookup of what it means. People at the service desk could use this info when they get a call. Build a form to allow them to do a search like... &lt;/P&gt;

&lt;P&gt;username=foo earliest=now latest=-12h | datamodel complexdatamodel clienterrors search | fields _time username WhatThisMeans WhatToDoAboutIT WhenWillItBeFixed&lt;/P&gt;

&lt;P&gt;They would know what we know without any expertise. Right now it looks like what I would have to do is run the entire datamodel and then search the results....&lt;/P&gt;

&lt;P&gt;| datamodel complexdatamodel clienterrors search | fields _time username WhatThisMeans WhatToDoAboutIT WhenWillItBeFixed | search username=foo&lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2014 08:37:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Why-Can-t-I-use-a-datamodel-backwards/m-p/194508#M4216</guid>
      <dc:creator>snoobzilla</dc:creator>
      <dc:date>2014-08-26T08:37:17Z</dc:date>
    </item>
  </channel>
</rss>

