<?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: Random line breaks everything in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Random-line-breaks-everything/m-p/293164#M88496</link>
    <description>&lt;P&gt;Hi LoganRhamy,,&lt;BR /&gt;
assigned_person isn't a field from the subsearch, it is a field from the lookup, for this reason the first thing is to be sure that you can find results before  the join command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; earliest=-30d index=nessus OR index=nessus_workstation severity_id!=0 severity_id!=1 
 | lookup nessusLookup.csv  OUTPUT assigned_person status notes 
 | search assigned_person="Ryan*" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When this is sure, you have to debug the join condition, for this reason I asked information about the type of join: using a different type, have you results?&lt;/P&gt;

&lt;P&gt;After, are you sure that the signature_id of the events that match "Ryan*" are also in the join subsearch?&lt;BR /&gt;
To check this you can use results from the first search in the second one.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2018 16:19:54 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2018-02-14T16:19:54Z</dc:date>
    <item>
      <title>Random line breaks everything</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Random-line-breaks-everything/m-p/293157#M88489</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;earliest=-30d index=nessus OR index=nessus_workstation severity_id!=0 severity_id!=1 
| lookup nessusLookup.csv signature_id OUTPUT assigned_person status notes 
| reltime 
| join type=outer signature_id 
    [ search earliest=-4d index=nessus OR index=nessus_workstation severity_id!=0 severity_id!=1 
    | stats count(dest_mac) as TotalHosts by signature_id ] 
| search assigned_person="Ryan*" 
| sort -severity_id -_time -TotalHosts 
| table signature signature_id severity_id assigned_person status notes reltime TotalHosts 
| rename signature as Signature signature_id as ID severity_id as Severity assigned_person as Owner status as Status notes as Notes reltime as "First Seen" TotalHosts as "Total Hosts"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I run this query the Total Hosts column does not populate.&lt;/P&gt;

&lt;P&gt;When I take out  | search assigned_person="Ryan*" it runs fine&lt;/P&gt;

&lt;P&gt;I have no earthly idea why this is breaking in that way. Any thoughts internet?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 22:36:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Random-line-breaks-everything/m-p/293157#M88489</guid>
      <dc:creator>LoganRhamy</dc:creator>
      <dc:date>2018-02-13T22:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Random line breaks everything</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Random-line-breaks-everything/m-p/293158#M88490</link>
      <description>&lt;P&gt;Is there a value in ”TotalHosts” until  &lt;CODE&gt;| search assigned_person="Ryan*"&lt;/CODE&gt;?&lt;BR /&gt;
If so, please make sure that the spelling is not wrong as the search sentence is not wrong.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 01:33:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Random-line-breaks-everything/m-p/293158#M88490</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2018-02-14T01:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Random line breaks everything</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Random-line-breaks-everything/m-p/293159#M88491</link>
      <description>&lt;P&gt;Hi LoganRhamy,&lt;BR /&gt;
if you run the first two rows of your serahc&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=-30d index=nessus OR index=nessus_workstation severity_id!=0 severity_id!=1 
| lookup nessusLookup.csv signature_id OUTPUT assigned_person status notes 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there field &lt;CODE&gt;assigned_person&lt;/CODE&gt; and is there value &lt;CODE&gt;Ryan*&lt;/CODE&gt;?&lt;BR /&gt;
If not, the problem in in the lookup.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 08:10:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Random-line-breaks-everything/m-p/293159#M88491</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2018-02-14T08:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Random line breaks everything</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Random-line-breaks-everything/m-p/293160#M88492</link>
      <description>&lt;P&gt;My apologizes for not being more thorough. No value populates during the run or once the job has been completed.&lt;/P&gt;

&lt;P&gt;The field in the lookup is populated by only Ryan (last name) or Drew (last name)&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 14:30:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Random-line-breaks-everything/m-p/293160#M88492</guid>
      <dc:creator>LoganRhamy</dc:creator>
      <dc:date>2018-02-14T14:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Random line breaks everything</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Random-line-breaks-everything/m-p/293161#M88493</link>
      <description>&lt;P&gt;There is -&lt;/P&gt;

&lt;P&gt;The referenced field in the lookup csv is populated by only Ryan (last name) or Drew (last name)&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 14:31:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Random-line-breaks-everything/m-p/293161#M88493</guid>
      <dc:creator>LoganRhamy</dc:creator>
      <dc:date>2018-02-14T14:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Random line breaks everything</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Random-line-breaks-everything/m-p/293162#M88494</link>
      <description>&lt;P&gt;Hi LoganRhamy,&lt;BR /&gt;
let me understand: what do you want to find in your join, why do you use using type=outer?&lt;/P&gt;

&lt;P&gt;After, If you run  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=-30d index=nessus OR index=nessus_workstation severity_id!=0 severity_id!=1 
| lookup nessusLookup.csv  OUTPUT assigned_person status notes 
| search assigned_person="Ryan*" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and you don't find anything, try this search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup nessusLookup.csv 
| search assigned_person="Ryan*" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;you should have at least one result, check the value of signature_id, maybe there a space in values or differences in upper/lower case.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 14:57:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Random-line-breaks-everything/m-p/293162#M88494</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2018-02-14T14:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Random line breaks everything</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Random-line-breaks-everything/m-p/293163#M88495</link>
      <description>&lt;P&gt;So the join type is something I have never worked with before. When I started building my query it didn't work with the default and did work with the outer. That being said there has been a lot of changes since then so I am not 100% sure if it is still required.&lt;/P&gt;

&lt;P&gt;So I think we are focusing in on the wrong problem. I am getting results from the query without a problem. I am not getting the results from the sub search. If I remove the line &lt;CODE&gt;| search assigned_person="Ryan*"&lt;/CODE&gt; then I will get results from the sub search but the results will not be filtered to only include Ryan's only.&lt;/P&gt;

&lt;P&gt;I did get results from both of your above queries as expected.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 16:07:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Random-line-breaks-everything/m-p/293163#M88495</guid>
      <dc:creator>LoganRhamy</dc:creator>
      <dc:date>2018-02-14T16:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Random line breaks everything</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Random-line-breaks-everything/m-p/293164#M88496</link>
      <description>&lt;P&gt;Hi LoganRhamy,,&lt;BR /&gt;
assigned_person isn't a field from the subsearch, it is a field from the lookup, for this reason the first thing is to be sure that you can find results before  the join command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; earliest=-30d index=nessus OR index=nessus_workstation severity_id!=0 severity_id!=1 
 | lookup nessusLookup.csv  OUTPUT assigned_person status notes 
 | search assigned_person="Ryan*" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When this is sure, you have to debug the join condition, for this reason I asked information about the type of join: using a different type, have you results?&lt;/P&gt;

&lt;P&gt;After, are you sure that the signature_id of the events that match "Ryan*" are also in the join subsearch?&lt;BR /&gt;
To check this you can use results from the first search in the second one.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 16:19:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Random-line-breaks-everything/m-p/293164#M88496</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2018-02-14T16:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Random line breaks everything</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Random-line-breaks-everything/m-p/293165#M88497</link>
      <description>&lt;P&gt;I understand now, So changing the join type to left, outer, or inner did not make any improvements. I have also confirmed the signature_id match by copying one from the csv and adding it directly to the query.&lt;/P&gt;

&lt;P&gt;Let me explain what I am trying to do because I am also open to other ways to get it done.&lt;/P&gt;

&lt;P&gt;I need to produce a dashboard that will show a signature, who it is assigned too, any notes on the event, and when it was first seen. I also need a count of how many Hosts in our current environment have it.&lt;/P&gt;

&lt;P&gt;Lines 1,2,3 7-10 complete the first task without a problem. It is when I introduce the subsearch that is supposed to tell me how many hosts currently have the issue is where we run into problems. I run the primary search for 100 days because I need to know if it is older than 90 days since the first time that signature was seen. I run the sub search at 4 days because that will capture what is required to see what hosts are currently affected.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 21:15:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Random-line-breaks-everything/m-p/293165#M88497</guid>
      <dc:creator>LoganRhamy</dc:creator>
      <dc:date>2018-02-14T21:15:36Z</dc:date>
    </item>
  </channel>
</rss>

