<?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 can I search the Splunk internal field _cd to return certain events? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-the-Splunk-internal-field-cd-to-return-certain/m-p/179757#M51759</link>
    <description>&lt;P&gt;@maciep so did this work for you to get an event&lt;BR /&gt;&lt;BR /&gt;
splunk_server=my-splunk index=main | search _cd=0:313124421 | head 1&lt;/P&gt;

&lt;P&gt;or you did a differently. Somewhere I read _cd is not searchable only can filter&lt;BR /&gt;
Can you post the query you did to get an event from main using _cd&lt;/P&gt;

&lt;P&gt;From notable it is working, but not for standard events in main index&lt;/P&gt;</description>
    <pubDate>Thu, 19 Mar 2015 05:08:20 GMT</pubDate>
    <dc:creator>badadata1</dc:creator>
    <dc:date>2015-03-19T05:08:20Z</dc:date>
    <item>
      <title>How can I search the Splunk internal field _cd to return certain events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-the-Splunk-internal-field-cd-to-return-certain/m-p/179755#M51757</link>
      <description>&lt;P&gt;How do I return events from searching the Splunk internal field &lt;CODE&gt;_cd&lt;/CODE&gt;?&lt;/P&gt;

&lt;P&gt;For example, the following are the &lt;CODE&gt;_cd&lt;/CODE&gt; values. I need to get the underlying events:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;0:313124421 0:313124433 0:313124445 0:313124457 0:313124469
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried this, but does not work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk_server=my-splunk index=main | search _cd=0:313124421 | head 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Are these values Splunk CIM values?&lt;/P&gt;

&lt;P&gt;I also tried:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk_server=my-splunk index=main | `get_event_hash` | search event_hash=c8bb8cb52e3172fdcfe28d637a9c1a52 | head 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The plan was to get an event using the event_hash from Notable results.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2015 14:08:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-the-Splunk-internal-field-cd-to-return-certain/m-p/179755#M51757</guid>
      <dc:creator>badadata1</dc:creator>
      <dc:date>2015-03-18T14:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search the Splunk internal field _cd to return certain events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-the-Splunk-internal-field-cd-to-return-certain/m-p/179756#M51758</link>
      <description>&lt;P&gt;When you say "Notable results" are you referring to the notables in Enterprise Security?  If so, try running the &lt;CODE&gt;notable&lt;/CODE&gt; macro in ES, the event_hash field should be populated in the results.&lt;/P&gt;

&lt;P&gt;For the first example, I was able to run a very similar search to get an event using the _cd field, so I'm not sure what's wrong there.  I did that outside of ES though.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2015 00:19:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-the-Splunk-internal-field-cd-to-return-certain/m-p/179756#M51758</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2015-03-19T00:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search the Splunk internal field _cd to return certain events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-the-Splunk-internal-field-cd-to-return-certain/m-p/179757#M51759</link>
      <description>&lt;P&gt;@maciep so did this work for you to get an event&lt;BR /&gt;&lt;BR /&gt;
splunk_server=my-splunk index=main | search _cd=0:313124421 | head 1&lt;/P&gt;

&lt;P&gt;or you did a differently. Somewhere I read _cd is not searchable only can filter&lt;BR /&gt;
Can you post the query you did to get an event from main using _cd&lt;/P&gt;

&lt;P&gt;From notable it is working, but not for standard events in main index&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2015 05:08:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-the-Splunk-internal-field-cd-to-return-certain/m-p/179757#M51759</guid>
      <dc:creator>badadata1</dc:creator>
      <dc:date>2015-03-19T05:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search the Splunk internal field _cd to return certain events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-the-Splunk-internal-field-cd-to-return-certain/m-p/179758#M51760</link>
      <description>&lt;P&gt;hi badadata,&lt;BR /&gt;
if _cd is already extracted field containing these values, and you want to return the events containing the values of this field you can try to run the following query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk_server=my-splunk  index=main  _cd=* | head 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or you can try to run this query for one specific value: &lt;CODE&gt;splunk_server=my-splunk  index=main | search _cd="0:313124421" | head 1&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;let me knows if it works.&lt;BR /&gt;
please forgive my english.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2015 09:16:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-the-Splunk-internal-field-cd-to-return-certain/m-p/179758#M51760</guid>
      <dc:creator>gyslainlatsa</dc:creator>
      <dc:date>2015-03-19T09:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search the Splunk internal field _cd to return certain events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-the-Splunk-internal-field-cd-to-return-certain/m-p/179759#M51761</link>
      <description>&lt;P&gt;Yes, it did.  We don't use the main index here, but it did work for me with a different index.&lt;/P&gt;

&lt;P&gt;Another thing you can try is to create a new field and set it to _cd.  Then search that one.  &lt;/P&gt;

&lt;P&gt;... | eval my_cd = _cd | search my_cd = "0:313124421"&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:11:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-the-Splunk-internal-field-cd-to-return-certain/m-p/179759#M51761</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2020-09-28T19:11:21Z</dc:date>
    </item>
  </channel>
</rss>

