<?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: non-compliant naming convention for workstations in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/non-compliant-naming-convention-for-workstations/m-p/660865#M228163</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No, i want to find&amp;nbsp;&lt;SPAN&gt;Computernames&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;that are not conform to a naming convention. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The Computer&amp;nbsp; name should start with the country code (e.g., Italy: IT, France: FR, USA: US), then followed by 6 digits.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Computer Name: US111220 =&amp;gt; Good&lt;/P&gt;&lt;P&gt;Computer Name: DESKTOP-121 =&amp;gt; BAD&lt;/P&gt;&lt;P&gt;Computer Name: FR000121 =&amp;gt; Good&lt;/P&gt;&lt;P&gt;Computer Name: Kali =&amp;gt; BAD&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;</description>
    <pubDate>Mon, 16 Oct 2023 12:46:37 GMT</pubDate>
    <dc:creator>karimoss</dc:creator>
    <dc:date>2023-10-16T12:46:37Z</dc:date>
    <item>
      <title>non-compliant naming convention for workstations</title>
      <link>https://community.splunk.com/t5/Splunk-Search/non-compliant-naming-convention-for-workstations/m-p/660830#M228153</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to detect workstations authenticated to the active directory that are not compliant with our naming conventions.( hostname should start with the country code&amp;nbsp;followed by 6 numbers. Exemple for a host from italy :IT000121).&lt;/P&gt;&lt;P&gt;I have already&amp;nbsp;a lookup file (| inputlookup code_countries.csv | table alpha-2),&amp;nbsp;but I don't know how to compare it with the 'Workstation' field in my active index to make it match the naming convention I described above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 09:56:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/non-compliant-naming-convention-for-workstations/m-p/660830#M228153</guid>
      <dc:creator>karimoss</dc:creator>
      <dc:date>2023-10-16T09:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: non-compliant naming convention for workstations</title>
      <link>https://community.splunk.com/t5/Splunk-Search/non-compliant-naming-convention-for-workstations/m-p/660835#M228154</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260810"&gt;@karimoss&lt;/a&gt;l,&lt;/P&gt;&lt;P&gt;let me understand: do you want to find all the Computernames from Active Directory logs that aren't in the lookup or what else?&lt;/P&gt;&lt;P&gt;if this is your requirement, you could run:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=win* NOT [ | inputlookup code_countries.csv | rename alpha-2 AS ComputerName | fields ComputerName ]
| dedup ComputerName
| sort ComputerName
| table ComputerName&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 10:36:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/non-compliant-naming-convention-for-workstations/m-p/660835#M228154</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-10-16T10:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: non-compliant naming convention for workstations</title>
      <link>https://community.splunk.com/t5/Splunk-Search/non-compliant-naming-convention-for-workstations/m-p/660865#M228163</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No, i want to find&amp;nbsp;&lt;SPAN&gt;Computernames&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;that are not conform to a naming convention. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The Computer&amp;nbsp; name should start with the country code (e.g., Italy: IT, France: FR, USA: US), then followed by 6 digits.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Computer Name: US111220 =&amp;gt; Good&lt;/P&gt;&lt;P&gt;Computer Name: DESKTOP-121 =&amp;gt; BAD&lt;/P&gt;&lt;P&gt;Computer Name: FR000121 =&amp;gt; Good&lt;/P&gt;&lt;P&gt;Computer Name: Kali =&amp;gt; BAD&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 12:46:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/non-compliant-naming-convention-for-workstations/m-p/660865#M228163</guid>
      <dc:creator>karimoss</dc:creator>
      <dc:date>2023-10-16T12:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: non-compliant naming convention for workstations</title>
      <link>https://community.splunk.com/t5/Splunk-Search/non-compliant-naming-convention-for-workstations/m-p/660868#M228165</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260810"&gt;@karimoss&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;in this case, you have to create a regex to search for ComputerName:&lt;/P&gt;&lt;P&gt;something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| regex ComputerName!="^?![A-Z]{2}\d{6}"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 13:02:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/non-compliant-naming-convention-for-workstations/m-p/660868#M228165</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-10-16T13:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: non-compliant naming convention for workstations</title>
      <link>https://community.splunk.com/t5/Splunk-Search/non-compliant-naming-convention-for-workstations/m-p/660879#M228170</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Your base search to get all workstation names e.g. | tstats count WHERE index=windows by host
| searc NOT ([| inputlookup code_countries.csv | table alpha-2 | eval host='aplha-2'."*" | table host])
| where match(host,"^\w{3}\d+")&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 16 Oct 2023 14:21:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/non-compliant-naming-convention-for-workstations/m-p/660879#M228170</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2023-10-16T14:21:49Z</dc:date>
    </item>
  </channel>
</rss>

