<?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: How do I search using a data model? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-using-a-data-model/m-p/239608#M71171</link>
    <description>&lt;P&gt;Yes I'm trying to integrate the network data model with my lookup table. I want to search our network data model that we have already setup. &lt;/P&gt;</description>
    <pubDate>Wed, 20 Jan 2016 16:37:43 GMT</pubDate>
    <dc:creator>Mitchellsch</dc:creator>
    <dc:date>2016-01-20T16:37:43Z</dc:date>
    <item>
      <title>How do I search using a data model?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-using-a-data-model/m-p/239603#M71166</link>
      <description>&lt;P&gt;I've been working on a report that shows the dropped or blocked traffic using the interesting ports lookup table. I want to change this to search the network data model so I'm not using the &lt;CODE&gt;*&lt;/CODE&gt; for my index. Any help on this would be great. Thanks.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* action="blocked" OR action="dropped"  [| inputlookup interesting_ports_lookup | fields dest_port] | table dest_port, dest_ip, src, app
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Jan 2016 15:23:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-using-a-data-model/m-p/239603#M71166</guid>
      <dc:creator>Mitchellsch</dc:creator>
      <dc:date>2016-01-20T15:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search using a data model?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-using-a-data-model/m-p/239604#M71167</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Take a look at the following two commands:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.2/SearchReference/Datamodel"&gt;datamodel&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.2/SearchReference/Pivot"&gt;pivot&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;You can also search on accelerated data models by using the &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.2/Knowledge/Acceleratedatamodels#Query_data_model_acceleration_summaries"&gt;tstats&lt;/A&gt; command.&lt;/P&gt;

&lt;P&gt;Hope that helps.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
J&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 15:28:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-using-a-data-model/m-p/239604#M71167</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-01-20T15:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search using a data model?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-using-a-data-model/m-p/239605#M71168</link>
      <description>&lt;P&gt;See the documentation to learn how to create data models&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/PivotTutorial/Buildtutorialdatamodel"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/PivotTutorial/Buildtutorialdatamodel&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 15:32:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-using-a-data-model/m-p/239605#M71168</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-01-20T15:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search using a data model?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-using-a-data-model/m-p/239606#M71169</link>
      <description>&lt;P&gt;I have my data model search here&lt;/P&gt;

&lt;P&gt;| datamodel Network_Traffic All_Traffic search | table All_Traffic.action&lt;/P&gt;

&lt;P&gt;I just want to know if I can combine the two searches.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:29:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-using-a-data-model/m-p/239606#M71169</guid>
      <dc:creator>Mitchellsch</dc:creator>
      <dc:date>2020-09-29T08:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search using a data model?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-using-a-data-model/m-p/239607#M71170</link>
      <description>&lt;P&gt;Sorry I'm not sure what you meant there, some characters seem to be missing. &lt;BR /&gt;
Can you post your searches again but using the Code format button?&lt;/P&gt;

&lt;P&gt;You can combine both searches yes, but it all depends on what you are trying to achieve.&lt;BR /&gt;
If you paste both searches and tell us what your goal is we might be able to help.&lt;/P&gt;

&lt;P&gt;My guess based on your first comment is that you are trying to integrate datamodel with your lookup. Can you confirm this is the case? If so you can either build the lookup into your datamodel or pipe it in the same way as you would do with a normal lookup. Take a look at this:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.2/Knowledge/Aboutdatamodels"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.2/Knowledge/Aboutdatamodels&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Data models can get their fields from extractions that you set up in the Field Extractions section of Manager or by configured directly in props.conf and transforms.conf. When you define your data model, you can arrange to have it get additional fields at search time through regular-expression-based field extractions, lookups, and eval expressions.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
J&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 15:51:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-using-a-data-model/m-p/239607#M71170</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-01-20T15:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search using a data model?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-using-a-data-model/m-p/239608#M71171</link>
      <description>&lt;P&gt;Yes I'm trying to integrate the network data model with my lookup table. I want to search our network data model that we have already setup. &lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 16:37:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-using-a-data-model/m-p/239608#M71171</guid>
      <dc:creator>Mitchellsch</dc:creator>
      <dc:date>2016-01-20T16:37:43Z</dc:date>
    </item>
  </channel>
</rss>

