Security

Discuss UNIX and Linux computer and network security, cyber security, cyber attacks, IT security, and more.

Proper naming conventions

command line, linux

👤 Login to reply
 
Thread Tools Search this Thread Display Modes
    #1  
Old 05-11-2018
Tobby P Tobby P is offline
Registered User
 
Join Date: May 2018
Last Activity: 23 May 2018, 12:41 PM EDT
Location: Canada
Posts: 5
Thanks: 3
Thanked 0 Times in 0 Posts
Data Proper naming conventions

Hey guys, not sure should I post it here or in 'What is on Your Mind?'

I’m discussing usage of DSL (domain specific language) in security tools with my colleagues. We haven't been able to reach an agreement over naming conventions.

There are many tools using DSL: splunk, sumologic, elasticsearch and etc. But what are the best practices?

So for example how would you name each component of the following strings:

Code:
$ sudo readlink -f /bin/ls -n

Code:
$ ps  aux

Code:
$ cat  -a  foobar.txt

I'd really appreciate if you guys could help me out.

You can answer here. Or I have a Google form, which I'd like you to fill out. But I'm not allowed to post URL's yet

Thanks.
Sponsored Links
    #2  
Old 05-12-2018
Peasant's Unix or Linux Image
Peasant Peasant is offline Forum Advisor  
Registered User
 
Join Date: Mar 2011
Last Activity: 18 July 2018, 10:29 AM EDT
Posts: 1,197
Thanks: 34
Thanked 370 Times in 318 Posts
So you have log management system, and you wonder how will you name logs that arrive at that central system ?

Stuff you posted are commands doing what a human or script instructed them on the box monitored.

Some of them read plain files, others inspect processes or follow links.
More or less standard stuff a user or administrator would do on a system, if allowed by permissions (files/directory permissions, ability to connect to machine etc.)

I'm not sure what kind of best practice advice you require.
Can you specify to more detail perhaps ?

And welcome to the forums

Regards
Peasant.
The Following User Says Thank You to Peasant For This Useful Post:
Tobby P (05-14-2018)
Sponsored Links
    #3  
Old 05-14-2018
Tobby P Tobby P is offline
Registered User
 
Join Date: May 2018
Last Activity: 23 May 2018, 12:41 PM EDT
Location: Canada
Posts: 5
Thanks: 3
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Peasant View Post
And welcome to the forums
Thanks

Quote:
Originally Posted by Peasant View Post
So you have log management system, and you wonder how will you name logs that arrive at that central system ?
Almost I'm developing a visibility tool and I'm planning to use DSL in similar way splunk and sumologic do. Although, not as complex.

So I need to know how to refer to "sudo", "ls", "echo" or etc. Mainly what is the most common way to call different parts of a string user typed.

I'm not interested in what command can do, but how do you name them.

---------- Post updated at 09:54 AM ---------- Previous update was at 09:52 AM ----------

Maybe this will help – Domain specific language questionnaire

I put everything inside Google form (doesn't collect emails or personal info).
Sponsored Links
👤 Login to reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Typographic conventions in bash 4.2 cowLips UNIX for Dummies Questions & Answers 1 03-11-2012 11:17 AM
c calling conventions rupeshkp728 Programming 5 06-23-2010 04:17 PM
CSS coding conventions checker figaro UNIX for Dummies Questions & Answers 0 09-13-2009 05:12 AM
A query on Disk naming conventions in Solaris. saagar Solaris 5 04-24-2009 02:00 PM
Naming conventions for shared libraries in Linux neked UNIX for Advanced & Expert Users 2 11-20-2008 10:36 AM



All times are GMT -4. The time now is 06:24 PM.

Unix & Linux Forums Content Copyright©1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?